添加域配置optime不能为空的验证

This commit is contained in:
zhangdongxu
2018-09-06 18:05:11 +08:00
parent 2d8cf69fd2
commit a888eee8a2
2 changed files with 29 additions and 1 deletions

View File

@@ -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());
}
}