封边条校验规则-宽最大,最小值,取值判断逻辑更改

This commit is contained in:
liuzhaotian
2025-04-02 10:28:10 +08:00
parent dc79df7bc3
commit 444f9cc0cb
2 changed files with 15 additions and 3 deletions
@@ -87,7 +87,15 @@ public class SealedgeServiceHandler extends AbstractSystemConfigServiceHandler {
if( widthMin2.compareTo(BigDecimal.ZERO) != 1 ){
throw exception(SEALEDGE_CONFIG_MIN_VALUE_DATA_ERROR,(i+1),widthMin2.stripTrailingZeros().toPlainString());
throw exception(SEALEDGE_CONFIG_MIN_VALUE_GREATER_THAN_ZERO,(i+1),widthMin2.stripTrailingZeros().toPlainString());
}
if( widthMax2.compareTo(BigDecimal.ZERO) != 1 ){
throw exception(SEALEDGE_CONFIG_MAX_VALUE_GREATER_THAN_ZERO,(i+1),widthMax2.stripTrailingZeros().toPlainString());
}
if( widthMax2.compareTo(widthMin2) == -1 ){
throw exception(SEALEDGE_CONFIG_VALUE_DATA_ERROR,(i+1));
}
if( widthValue2.compareTo(widthMax2) == -1 ){