还原bgp SubscribeId信息查询方法
This commit is contained in:
@@ -51,14 +51,14 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
|||||||
public CfgIndexInfo getBgpCfg(Long cfgId,Integer compileId){
|
public CfgIndexInfo getBgpCfg(Long cfgId,Integer compileId){
|
||||||
CfgIndexInfo entity = bgpCfgDao.getCfgIndexInfo(cfgId,compileId);
|
CfgIndexInfo entity = bgpCfgDao.getCfgIndexInfo(cfgId,compileId);
|
||||||
List<IpPortCfg> ipPortList = bgpCfgDao.getIpPortList(entity);
|
List<IpPortCfg> ipPortList = bgpCfgDao.getIpPortList(entity);
|
||||||
/*NtcSubscribeIdCfg subscribeId = new NtcSubscribeIdCfg();
|
NtcSubscribeIdCfg subscribeId = new NtcSubscribeIdCfg();
|
||||||
subscribeId.setCompileId(entity.getCompileId());
|
subscribeId.setCompileId(entity.getCompileId());
|
||||||
subscribeId.setIsValid(entity.getIsValid());
|
subscribeId.setIsValid(entity.getIsValid());
|
||||||
List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList = stringCfgDao.findSubscribeIdCfgList(subscribeId);*/
|
List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList = stringCfgDao.findSubscribeIdCfgList(subscribeId);
|
||||||
List<NtcBgpAsCfg> ntcBgpAsCfgList = bgpCfgDao.getNtcBgpAsList(entity);
|
List<NtcBgpAsCfg> ntcBgpAsCfgList = bgpCfgDao.getNtcBgpAsList(entity);
|
||||||
//List<HttpUrlCfg> httpUrlList = bgpCfgDao.getHttpUrlList(entity);
|
//List<HttpUrlCfg> httpUrlList = bgpCfgDao.getHttpUrlList(entity);
|
||||||
entity.setIpPortList(ipPortList);
|
entity.setIpPortList(ipPortList);
|
||||||
//entity.setNtcSubscribeIdCfgList(ntcSubscribeIdCfgList);
|
entity.setNtcSubscribeIdCfgList(ntcSubscribeIdCfgList);
|
||||||
entity.setNtcBgpAsCfgList(ntcBgpAsCfgList);
|
entity.setNtcBgpAsCfgList(ntcBgpAsCfgList);
|
||||||
//entity.setHttpReqBodyList(httpUrlList);
|
//entity.setHttpReqBodyList(httpUrlList);
|
||||||
return entity;
|
return entity;
|
||||||
@@ -315,7 +315,7 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
|||||||
entity.setAuditTime(new Date());
|
entity.setAuditTime(new Date());
|
||||||
bgpCfgDao.auditCfg(entity);
|
bgpCfgDao.auditCfg(entity);
|
||||||
bgpCfgDao.updateBgpAsCfg(entity);
|
bgpCfgDao.updateBgpAsCfg(entity);
|
||||||
//bgpCfgDao.updateSubscribeIdCfg(entity);
|
bgpCfgDao.updateSubscribeIdCfg(entity);
|
||||||
ToMaatBean maatBean = new ToMaatBean();
|
ToMaatBean maatBean = new ToMaatBean();
|
||||||
MaatCfg maatCfg = new MaatCfg();
|
MaatCfg maatCfg = new MaatCfg();
|
||||||
List<MaatCfg> configCompileList = new ArrayList();
|
List<MaatCfg> configCompileList = new ArrayList();
|
||||||
@@ -343,7 +343,7 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){
|
if(entity.getNtcSubscribeIdCfgList()!=null && entity.getNtcSubscribeIdCfgList().size()>0){
|
||||||
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
NtcSubscribeIdCfg cfg = new NtcSubscribeIdCfg();
|
||||||
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
BeanUtils.copyProperties(entity, cfg, new String[]{"cfgId"});
|
||||||
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
cfg.setTableName(NtcSubscribeIdCfg.getTablename());
|
||||||
@@ -353,7 +353,7 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
|||||||
groupRelationList=map.get("groupList");
|
groupRelationList=map.get("groupList");
|
||||||
strRegionList=map.get("dstList");
|
strRegionList=map.get("dstList");
|
||||||
}
|
}
|
||||||
}*/
|
}
|
||||||
|
|
||||||
if(entity.getNtcBgpAsCfgList()!=null && entity.getNtcBgpAsCfgList().size()>0){
|
if(entity.getNtcBgpAsCfgList()!=null && entity.getNtcBgpAsCfgList().size()>0){
|
||||||
NtcBgpAsCfg cfg = new NtcBgpAsCfg();
|
NtcBgpAsCfg cfg = new NtcBgpAsCfg();
|
||||||
|
|||||||
Reference in New Issue
Block a user