APP策略修改.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user