diff --git a/src/main/java/com/nis/web/service/configuration/BgpCfgService.java b/src/main/java/com/nis/web/service/configuration/BgpCfgService.java index 8cd5ac1dd..e8944b55d 100644 --- a/src/main/java/com/nis/web/service/configuration/BgpCfgService.java +++ b/src/main/java/com/nis/web/service/configuration/BgpCfgService.java @@ -51,14 +51,14 @@ public class BgpCfgService extends CrudService { public CfgIndexInfo getBgpCfg(Long cfgId,Integer compileId){ CfgIndexInfo entity = bgpCfgDao.getCfgIndexInfo(cfgId,compileId); List ipPortList = bgpCfgDao.getIpPortList(entity); - /*NtcSubscribeIdCfg subscribeId = new NtcSubscribeIdCfg(); + NtcSubscribeIdCfg subscribeId = new NtcSubscribeIdCfg(); subscribeId.setCompileId(entity.getCompileId()); subscribeId.setIsValid(entity.getIsValid()); - List ntcSubscribeIdCfgList = stringCfgDao.findSubscribeIdCfgList(subscribeId);*/ + List ntcSubscribeIdCfgList = stringCfgDao.findSubscribeIdCfgList(subscribeId); List ntcBgpAsCfgList = bgpCfgDao.getNtcBgpAsList(entity); //List httpUrlList = bgpCfgDao.getHttpUrlList(entity); entity.setIpPortList(ipPortList); - //entity.setNtcSubscribeIdCfgList(ntcSubscribeIdCfgList); + entity.setNtcSubscribeIdCfgList(ntcSubscribeIdCfgList); entity.setNtcBgpAsCfgList(ntcBgpAsCfgList); //entity.setHttpReqBodyList(httpUrlList); return entity; @@ -315,7 +315,7 @@ public class BgpCfgService extends CrudService { entity.setAuditTime(new Date()); bgpCfgDao.auditCfg(entity); bgpCfgDao.updateBgpAsCfg(entity); - //bgpCfgDao.updateSubscribeIdCfg(entity); + bgpCfgDao.updateSubscribeIdCfg(entity); ToMaatBean maatBean = new ToMaatBean(); MaatCfg maatCfg = new MaatCfg(); List configCompileList = new ArrayList(); @@ -343,7 +343,7 @@ public class BgpCfgService extends CrudService { } } - /*if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){ + if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){ NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg(); BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"}); cfg.setTableName(NtcSubscribeIdCfg.getTablename()); @@ -353,7 +353,7 @@ public class BgpCfgService extends CrudService { groupRelationList=map.get("groupList"); strRegionList=map.get("dstList"); } - }*/ + } if(entity.getNtcBgpAsCfgList()!=null && entity.getNtcBgpAsCfgList().size()>0){ NtcBgpAsCfg cfg = new NtcBgpAsCfg();