修改bgp没有删掉subscribe
This commit is contained in:
@@ -41,6 +41,7 @@ public interface BgpCfgDao extends CrudDao<CfgIndexInfo>{
|
||||
public void saveIpPortCfg(IpPortCfg entity);
|
||||
public void updateBgpAsCfg(CfgIndexInfo entity);
|
||||
public void updateSubscribeIdCfg(CfgIndexInfo entity);
|
||||
public void deleteSubscribeIdCfg(CfgIndexInfo entity);
|
||||
//public void saveHttpUrlCfg(HttpUrlCfg entity);
|
||||
public void deleteHttpIpCfg(CfgIndexInfo entity);
|
||||
//public void deleteHttpUrlCfg(CfgIndexInfo entity);
|
||||
|
||||
@@ -639,6 +639,10 @@
|
||||
delete from ntc_bgp_as_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSubscribeIdCfg" >
|
||||
delete from ntc_subscribe_id_cfg where compile_id=#{compileId} and function_id=#{functionId}
|
||||
</delete>
|
||||
|
||||
<update id="updateCfgValid" parameterType="com.nis.domain.configuration.BaseCfg">
|
||||
update ${tableName} set is_valid = #{isValid,jdbcType=INTEGER},
|
||||
editor_id = #{editorId,jdbcType=INTEGER} ,
|
||||
|
||||
@@ -135,10 +135,10 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
||||
areaIpCfgDao.saveAreaIpCfg(cfg);
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
} catch (MaatConvertException e) {
|
||||
e.printStackTrace();
|
||||
logger.info("获取编译ID出错");
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>:"+e.getMessage());
|
||||
throw new MaatConvertException("<spring:message code=\"request_service_failed\"/>");
|
||||
}
|
||||
|
||||
}else{
|
||||
@@ -146,9 +146,7 @@ public class BgpCfgService extends CrudService<BgpCfgDao,CfgIndexInfo> {
|
||||
//无效子配置后,再新增子配置
|
||||
bgpCfgDao.deleteIpCfg(entity);
|
||||
bgpCfgDao.deleteBgpAsCfg(entity);
|
||||
if(entity.getNtcSubscribeIdCfg()!=null){
|
||||
stringCfgDao.deleteSubscribeIdCfg(entity.getNtcSubscribeIdCfg());
|
||||
}
|
||||
bgpCfgDao.deleteSubscribeIdCfg(entity);
|
||||
//TODO
|
||||
//bgpCfgDao.deleteDnsDomainCfg(entity);
|
||||
AreaIpCfg area = new AreaIpCfg();
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
$(".Wdate").attr("value",'');
|
||||
$("#level").attr("value",'');
|
||||
$("#searchForm")[0].reset();
|
||||
$("#intype").attr("placeholder","<spring:message code='input'/> "+$("#seltype").find("option:selected").text());
|
||||
});
|
||||
//异步获取voip相关信息
|
||||
$("span[id^=open]").click(function(){
|
||||
|
||||
Reference in New Issue
Block a user