多媒体的置信度默认值bug更改;
音视频的任务调度bug更改; 批量配置生效去掉无效代码
This commit is contained in:
@@ -3137,24 +3137,21 @@ public class BaseController {
|
||||
List<AsnIpCfg> list=asnIpCfgService.findPage(page, searchAsnIpCfg).getList();
|
||||
|
||||
if(!StringUtil.isEmpty(list)){
|
||||
if(auditBatchCfg.getIsValid().equals(1)) {
|
||||
}else {
|
||||
Map<Integer,List> asnIpMap=new HashMap();
|
||||
if(!StringUtil.isEmpty(list)) {
|
||||
for (AsnIpCfg obj : list) {
|
||||
BaseCfg baseCfg=(BaseCfg)obj;
|
||||
if(!StringUtil.isEmpty(asnIpMap.get(obj.getAsnIpGroup()))) {
|
||||
asnIpMap.get(obj.getAsnIpGroup()).add(baseCfg);
|
||||
asnIpMap.put(obj.getAsnIpGroup(), asnIpMap.get(obj.getAsnIpGroup()));
|
||||
}else {
|
||||
List newList=new ArrayList<>();
|
||||
newList.add(baseCfg);
|
||||
asnIpMap.put(obj.getAsnIpGroup(),newList);
|
||||
}
|
||||
Map<Integer,List> asnIpMap=new HashMap();
|
||||
if(!StringUtil.isEmpty(list)) {
|
||||
for (AsnIpCfg obj : list) {
|
||||
BaseCfg baseCfg=(BaseCfg)obj;
|
||||
if(!StringUtil.isEmpty(asnIpMap.get(obj.getAsnIpGroup()))) {
|
||||
asnIpMap.get(obj.getAsnIpGroup()).add(baseCfg);
|
||||
asnIpMap.put(obj.getAsnIpGroup(), asnIpMap.get(obj.getAsnIpGroup()));
|
||||
}else {
|
||||
List newList=new ArrayList<>();
|
||||
newList.add(baseCfg);
|
||||
asnIpMap.put(obj.getAsnIpGroup(),newList);
|
||||
}
|
||||
}
|
||||
hasData=commonPolicyService.auditReuseConfigData(page, auditBatchCfg,asnIpMap,hasData);
|
||||
}
|
||||
hasData=commonPolicyService.auditReuseConfigData(page, auditBatchCfg,asnIpMap,hasData);
|
||||
}else{
|
||||
hasData = false;
|
||||
}
|
||||
@@ -3211,31 +3208,21 @@ public class BaseController {
|
||||
List<AppIpCfg> list=appCfgService.findAppIpList(page, searchAppIpCfg).getList();
|
||||
|
||||
if(!StringUtil.isEmpty(list)){
|
||||
if(auditBatchCfg.getIsValid().equals(1)) {
|
||||
//TODO 批量审核通过APP IP需要处理的问题:一批中存在一个APP 所有IP均未下发过的问题?待解决
|
||||
//先查询所有的asn group,在根据asn group 查询所有未下发的asn ip
|
||||
|
||||
//批量下发时,未下发过的app需要下发正常配置;已下发过的app需要下发ip复用配置(为保证事物,分两种方式下发)
|
||||
/*hasData=configSynchronizationService.auditDdosMaatData(cfgList,userRegionList,
|
||||
page,auditBatchCfg,list,hasData,true);*/
|
||||
|
||||
}else {
|
||||
Map<Integer,List> appIpMap=new HashMap();
|
||||
if(!StringUtil.isEmpty(list)) {
|
||||
for (AppIpCfg obj : list) {
|
||||
BaseCfg baseCfg=(BaseCfg)obj;
|
||||
if(!StringUtil.isEmpty(appIpMap.get((groupMap.get(obj.getCompileId()))))) {
|
||||
appIpMap.get(groupMap.get(obj.getCompileId())).add(baseCfg);
|
||||
appIpMap.put(groupMap.get(obj.getCompileId()), appIpMap.get(groupMap.get(obj.getCompileId())));
|
||||
}else {
|
||||
List newList=new ArrayList<>();
|
||||
newList.add(baseCfg);
|
||||
appIpMap.put(groupMap.get(obj.getCompileId()),newList);
|
||||
}
|
||||
Map<Integer,List> appIpMap=new HashMap();
|
||||
if(!StringUtil.isEmpty(list)) {
|
||||
for (AppIpCfg obj : list) {
|
||||
BaseCfg baseCfg=(BaseCfg)obj;
|
||||
if(!StringUtil.isEmpty(appIpMap.get((groupMap.get(obj.getCompileId()))))) {
|
||||
appIpMap.get(groupMap.get(obj.getCompileId())).add(baseCfg);
|
||||
appIpMap.put(groupMap.get(obj.getCompileId()), appIpMap.get(groupMap.get(obj.getCompileId())));
|
||||
}else {
|
||||
List newList=new ArrayList<>();
|
||||
newList.add(baseCfg);
|
||||
appIpMap.put(groupMap.get(obj.getCompileId()),newList);
|
||||
}
|
||||
}
|
||||
hasData=commonPolicyService.auditReuseConfigData(page, auditBatchCfg,appIpMap,hasData);
|
||||
}
|
||||
hasData=commonPolicyService.auditReuseConfigData(page, auditBatchCfg,appIpMap,hasData);
|
||||
}else{
|
||||
hasData = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user