APP策略修改.

This commit is contained in:
zhangwenqing
2018-08-25 17:07:34 +08:00
parent 0354487dc8
commit 015a5811c9
3 changed files with 12 additions and 11 deletions

View File

@@ -240,15 +240,11 @@ public class AppCfgService extends BaseService {
}
}
appCfgDao.updateAppPolicyCfg(entity);
// 先删后加 各域配置
appCfgDao.deleteAppPolicyIpCfg(entity);
if (entity != null && entity.getNtcSubscribeIdCfgList() != null
&& entity.getNtcSubscribeIdCfgList().size() > 0) {
for (NtcSubscribeIdCfg ntcSubscribeIdCfg : entity.getNtcSubscribeIdCfgList()) {
ntcSubscribeIdCfg.setCompileId(entity.getCompileId());
stringcfgDao.deleteSubscribeIdCfg(ntcSubscribeIdCfg);
}
}
appCfgDao.deleteSubscribeIdCfg(entity);
// 删除旧的区域IP新增新的区域IP
AreaIpCfg area = new AreaIpCfg();
area.setCompileId(entity.getCompileId());
@@ -1449,9 +1445,9 @@ public class AppCfgService extends BaseService {
}
// 删除关键字
if (entity.getNtcSubscribeIdCfgList() != null && entity.getNtcSubscribeIdCfgList().size() > 0) {
NtcSubscribeIdCfg ntcSubscribeIdCfg = new NtcSubscribeIdCfg();
BeanUtils.copyProperties(entity, ntcSubscribeIdCfg, new String[] { "cfgId" });
stringcfgDao.updateSubscribeIdCfg(ntcSubscribeIdCfg);
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
BeanUtils.copyProperties(entity, cfg, new String[] { "cfgId" });
stringcfgDao.updateSubscribeIdCfg(cfg);
}
// 保存区域IP信息
if (entity.getAreaCfg() != null && entity.getAreaCfg().size() > 0) {