增加地址池管理查看所有IP、策略管理用户类型检索.

This commit is contained in:
zhangwq
2018-12-06 18:15:27 +08:00
parent 68a28366a0
commit 7a99f6b758
11 changed files with 108 additions and 11 deletions

View File

@@ -14,4 +14,5 @@ public interface IpReuseIpCfgDao extends CrudDao<IpReuseIpCfg> {
List<IpReuseIpCfg> findPage(IpReuseIpCfg userIpCfg);
IpReuseIpCfg getUserIpCfg(Long cfgId);
IpReuseIpCfg getIpByIp(String destIpAddress);
List<IpReuseIpCfg> getPolicyIpInfo(@Param("addrPoolId")Integer addrPoolId);
}

View File

@@ -182,6 +182,15 @@
where r.is_valid !=-1 and r.cfg_id=#{cfgId}
</select>
<select id="getPolicyIpInfo" resultMap="reuserIpCfgMap">
SELECT
<include refid="columns"></include>
FROM
ip_reuse_ip_cfg r
WHERE
r.is_valid !=-1 AND r.user_region1 = #{addrPoolId}
</select>
<insert id="insert" parameterType="com.nis.domain.basics.IpReuseIpCfg" >
insert into ip_reuse_ip_cfg (
CFG_DESC,

View File

@@ -81,6 +81,9 @@
<if test="srcIpAddress != null and srcIpAddress != ''">
AND r.src_ip_address=#{srcIpAddress,jdbcType=VARCHAR}
</if>
<if test="userType != null and userType != ''">
AND r.user_type=#{userType,jdbcType=VARCHAR}
</if>
<if test="userName != null and userName != ''">
AND r.user_name LIKE concat(concat('%',#{userName,jdbcType=VARCHAR}),'%')
</if>