日志查询添加配置信息
This commit is contained in:
@@ -40,5 +40,8 @@ public interface IpMultiplexDao extends CrudDao<IpMultiplexDao>{
|
||||
List<BaseIpCfg> findPageDnat(IpReuseDnatPolicyCfg entity);
|
||||
|
||||
List<IpReuseDnatPolicyCfg> findDnatList(@Param("cfgId")Long cfgId, @Param("isValid")Integer isValid);
|
||||
|
||||
|
||||
IpReusePolicyCfg getSnatCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId);
|
||||
|
||||
IpReuseDnatPolicyCfg getDnatCfg(@Param("cfgId")Long cfgId,@Param("compileId")Integer compileId);
|
||||
}
|
||||
|
||||
@@ -711,4 +711,32 @@
|
||||
</where>
|
||||
ORDER BY a.cfg_id
|
||||
</select>
|
||||
|
||||
<select id="getSnatCfg" resultMap="policyMap">
|
||||
select
|
||||
<include refid="policyColumns"></include>
|
||||
from ip_reuse_policy_cfg r
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
r.CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND r.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getDnatCfg" resultMap="dnatPolicyMap">
|
||||
select
|
||||
<include refid="dnatPolicyColumns"></include>
|
||||
from ip_reuse_dnat_policy a
|
||||
<where>
|
||||
<if test="cfgId !=null">
|
||||
a.CFG_ID = #{cfgId,jdbcType=BIGINT}
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
AND a.COMPILE_ID=#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user