mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
自定义板编号配置:1、前端入参自定义类型、时间类型value字段名调整;2、时间类型复位问题修复;
This commit is contained in:
+2
-2
@@ -113,7 +113,7 @@ public class CustomPlateNoServiceHandler extends AbstractSystemConfigServiceHand
|
||||
checkCustom(custBoardRuleCodeEnum, jsonObject);
|
||||
|
||||
// 3.时间格式校验
|
||||
checkDateFormat(custBoardRuleCodeEnum, jsonObject.getString("value"), dateTypeFormatDictList);
|
||||
checkDateFormat(custBoardRuleCodeEnum, jsonObject.getString("dateValue"), dateTypeFormatDictList);
|
||||
|
||||
// 4.序号类型校验数字和布尔类型
|
||||
checkNoType(custBoardRuleCodeEnum, jsonObject);
|
||||
@@ -169,7 +169,7 @@ public class CustomPlateNoServiceHandler extends AbstractSystemConfigServiceHand
|
||||
*/
|
||||
private void checkCustom(CustomPlateNoRuleCodeEnum custBoardRuleCodeEnum, JSONObject jsonObject) {
|
||||
if (ObjectUtil.equal(CustomPlateNoRuleCodeEnum.CUSTOM, custBoardRuleCodeEnum)) {
|
||||
if (ObjectUtil.isEmpty(jsonObject.get("value"))) {
|
||||
if (ObjectUtil.isEmpty(jsonObject.get("strValue"))) {
|
||||
throw ServiceExceptionUtil.exception(CUSTOM_PLATE_NO_RULE_CHECK_CUSTOM_VALUE_EMPTY_ERROR, jsonObject.get("ruleCode"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user