APP策略修改.
This commit is contained in:
@@ -93,4 +93,5 @@ public interface AppCfgDao {
|
||||
public void auditCfg(BaseCfg entity);
|
||||
//修改配置状态
|
||||
public void updateCfgValid(BaseCfg entity);
|
||||
public void deleteSubscribeIdCfg(AppPolicyCfg entity);
|
||||
}
|
||||
|
||||
@@ -2840,6 +2840,10 @@
|
||||
<!-- 删除APP策略IP子配置 -->
|
||||
<delete id="deleteAppPolicyIpCfg" >
|
||||
delete from ip_port_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||
</delete>
|
||||
<!-- 删除SubscribeId子配置 -->
|
||||
<delete id="deleteSubscribeIdCfg" >
|
||||
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||
</delete>
|
||||
<!-- 查询APP策略IP子配置 -->
|
||||
<select id="getAppPolicyIpList" resultMap="ipPortMap" parameterType="com.nis.domain.configuration.CfgIndexInfo">
|
||||
|
||||
@@ -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