1.地址池管理增加 删除限制 2.策略分组管理去掉SNAT/DNAT IP类型
This commit is contained in:
@@ -47,4 +47,7 @@ public interface IpCfgDao extends CrudDao<BaseIpCfg>{
|
||||
public void auditCfg(BaseCfg entity);
|
||||
public List<CfgIndexInfo> getIpCfgList(CfgIndexInfo entity);
|
||||
|
||||
// 校验地址池是否被策略引用
|
||||
public List<BaseIpCfg> checkAddrPoolIsUsed(@Param("addrPoolId")String addrPoolId);
|
||||
|
||||
}
|
||||
|
||||
@@ -1142,4 +1142,15 @@
|
||||
</otherwise>
|
||||
</choose>
|
||||
</select>
|
||||
|
||||
<select id="checkAddrPoolIsUsed" resultMap="BaseIpMap">
|
||||
SELECT
|
||||
<include refid="BaseIpCfg_Column_List_with_id" />
|
||||
FROM
|
||||
ip_port_cfg
|
||||
WHERE
|
||||
is_valid != -1 AND
|
||||
ir_type IS NOT NULL AND
|
||||
user_region2 = #{addrPoolId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user