恢复ip和代理模块审核方法中二次查询域信息代码,避免同一种域允许新增多个的问题

This commit is contained in:
段冬梅
2019-04-28 12:03:16 +08:00
committed by duandongmei
parent 38d1fb5a82
commit 92605e323e
3 changed files with 9 additions and 0 deletions

View File

@@ -379,6 +379,9 @@ public class HttpRedirectCfgService extends CrudService<WebsiteCfgDao,CfgIndexIn
List<DigestCfg> digestRegionList = new ArrayList();
List<IpCfg> areaIpRegionList = new ArrayList();
//查询子配置并修改审核状态
entity = this.getHttpCfg(entity.getCfgId(),entity.getCompileId());
if(entity.getIpPortList()!=null && entity.getIpPortList().size()>0){
IpPortCfg cfg = new IpPortCfg();
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});

View File

@@ -378,6 +378,8 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
List<DigestCfg> digestRegionList = new ArrayList();
List<IpCfg> areaIpRegionList = new ArrayList();
//查询子配置并修改审核状态
entity = this.getInterceptCfg(entity.getCfgId(),entity.getCompileId());
if(entity.getServiceId().equals(518)){//IP仿冒策略
//仿冒IP池配置匹配下发或者取消
PxyObjSpoofingIpPool pool=new PxyObjSpoofingIpPool();

View File

@@ -579,6 +579,10 @@ public class IpCfgService extends CrudService<IpCfgDao, BaseIpCfg> {
// 获取region
List<FunctionRegionDict> dictList = DictUtils.getFunctionRegionDictList(entity.getFunctionId());
int maatType = 0;
//查询子配置并修改审核状态
entity = this.getIpPortCfg(entity.getCfgId(),entity.getCompileId());
if (entity.getIpPortList() != null && entity.getIpPortList().size() > 0) {
// 判断下发类型是走maat还是callback
String regionValue = entity.getIpPortList().get(0).getCfgType();