添加域配置optime不能为空的验证
This commit is contained in:
@@ -202,6 +202,10 @@ public class GroupReuseVal {
|
||||
throw new RestServiceException("ipRegionList中id为" + regionId + "的配置isValid不能为空",
|
||||
RestBusinessCode.IsValidIsNull.getValue());
|
||||
}
|
||||
if (null == ipRegion.getOpTime()) {
|
||||
throw new RestServiceException("ipRegionList中id为" + regionId + "的配置opTime不能为空",
|
||||
RestBusinessCode.OpTimeIsNull.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public static void valNumRegion(NumRegion numRegion)
|
||||
@@ -223,6 +227,10 @@ public class GroupReuseVal {
|
||||
throw new RestServiceException("数值类域配置id为" + regionId + "的配置upBoundary不能为空",
|
||||
RestBusinessCode.UpBoundaryIsNull.getValue());
|
||||
}
|
||||
if (null == numRegion.getOpTime()) {
|
||||
throw new RestServiceException("数值类域配置中id为" + regionId + "的配置opTime不能为空",
|
||||
RestBusinessCode.OpTimeIsNull.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public static void valStrRegion(StrRegion strRegion) throws Exception {
|
||||
@@ -255,6 +263,10 @@ public class GroupReuseVal {
|
||||
throw new RestServiceException("strRegionList中id为" + regionId + "的配置isHexbin不能为空",
|
||||
RestBusinessCode.MatchMethodIsNull.getValue());
|
||||
}
|
||||
if (null == strRegion.getOpTime()) {
|
||||
throw new RestServiceException("strRegionList中id为" + regionId + "的配置opTime不能为空",
|
||||
RestBusinessCode.OpTimeIsNull.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user