mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
封边条校验规则-宽最大,最小值,取值判断逻辑更改
This commit is contained in:
+9
-1
@@ -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 ){
|
||||
|
||||
Reference in New Issue
Block a user