添加APP IP特征域配置(1028)时需要加service和userRegion属性
This commit is contained in:
@@ -409,6 +409,15 @@ public enum RestBusinessCode {
|
|||||||
* 域配置中的tableName不是分组复用的域表
|
* 域配置中的tableName不是分组复用的域表
|
||||||
*/
|
*/
|
||||||
TableNameUnReuse(4002102, "域配置中tableName不是分组复用的域表"),
|
TableNameUnReuse(4002102, "域配置中tableName不是分组复用的域表"),
|
||||||
|
/**
|
||||||
|
* 分组复用域配置下发到阀门时userRegion不能为空
|
||||||
|
*/
|
||||||
|
ReUseUserRegionIsNull(4002102, "域配置需要下发到阀门,userRegion不能为空"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加分组复用域配置时,service只能为空或1028
|
||||||
|
*/
|
||||||
|
ReUseServiceRange(4002102, "添加分组复用域配置时,service只能为空或1028"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*数值域配置的lowBoundary值不在有效范围内
|
*数值域配置的lowBoundary值不在有效范围内
|
||||||
|
|||||||
@@ -97,6 +97,22 @@ public class GroupReuseVal {
|
|||||||
for (IpRegion ipRegion : ipRegionList) {
|
for (IpRegion ipRegion : ipRegionList) {
|
||||||
// if (groupReuse.getIsValid() != 0 &&
|
// if (groupReuse.getIsValid() != 0 &&
|
||||||
// !regionGroupIdList.contains(ipRegion.getGroupId())) {
|
// !regionGroupIdList.contains(ipRegion.getGroupId())) {
|
||||||
|
if (!StringUtil.isEmpty(groupReuse.getService())) {
|
||||||
|
if (groupReuse.getService().intValue()!=1028) {
|
||||||
|
throw new RestServiceException("ipRegionList中的regionId为"
|
||||||
|
+ ipRegion.getRegionId()
|
||||||
|
+ "的域配置的service只能为空或1028",
|
||||||
|
RestBusinessCode.ReUseServiceRange
|
||||||
|
.getValue());
|
||||||
|
}
|
||||||
|
if (StringUtil.isEmpty(ipRegion.getUserRegion())) {
|
||||||
|
throw new RestServiceException("ipRegionList中的regionId为"
|
||||||
|
+ ipRegion.getRegionId()
|
||||||
|
+ "的域配置需要下发到阀门,userRegion不能为空",
|
||||||
|
RestBusinessCode.ReUseUserRegionIsNull
|
||||||
|
.getValue());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!StringUtil.isEmpty(ipRegion.getTableName())
|
if (!StringUtil.isEmpty(ipRegion.getTableName())
|
||||||
&& !groupReuseRegionMap.get("ipRegion").contains(ipRegion.getTableName())) {
|
&& !groupReuseRegionMap.get("ipRegion").contains(ipRegion.getTableName())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user