Protocol配置列表增加源/目的IP、关键字检索.
This commit is contained in:
@@ -369,18 +369,17 @@
|
||||
<if test="functionId != null">
|
||||
AND r.function_id=#{functionId,jdbcType=INTEGER}
|
||||
</if>
|
||||
<if test="(ipPort.srcIpAddress != null and ipPort.srcIpAddress != '') or (ipPort.srcPort != null and ipPort.srcPort != '')">
|
||||
<if test="ipPort != null">
|
||||
AND r.compile_id in (select t.compile_id from ip_port_cfg t
|
||||
<where>
|
||||
and t.protocol_id=4
|
||||
<if test="ipPort.srcIpAddress != null and ipPort.srcIpAddress != ''">
|
||||
and t.src_ip_address =#{(ipPort.srcIpAddress,jdbcType=VARCHAR}
|
||||
and t.src_ip_address =#{ipPort.srcIpAddress,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="ipPort.srcPort != null and ipPort.srcPort != ''">
|
||||
and t.src_port =#{ipPort.srcPort,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="ipPort.destIpAddress != null and ipPort.destIpAddress != ''">
|
||||
and t.dest_ip_address =#{(ipPort.destIpAddress,jdbcType=VARCHAR}
|
||||
and t.dest_ip_address =#{ipPort.destIpAddress,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="ipPort.destPort != null and ipPort.destPort != ''">
|
||||
and t.dest_port =#{ipPort.destPort,jdbcType=VARCHAR}
|
||||
@@ -388,46 +387,16 @@
|
||||
</where>
|
||||
)
|
||||
</if>
|
||||
<!-- <if test="(voipIp.srcIpAddress != null and voipIp.srcIpAddress != '') or (voipIp.srcPort != null and voipIp.srcPort != '')">
|
||||
AND r.compile_id in (select t.compile_id from av_voip_ip_cfg t
|
||||
<if test="voipAccount != null">
|
||||
AND r.compile_id in (SELECT s.compile_id FROM av_voip_account_cfg s
|
||||
<where>
|
||||
<if test="voipIp.srcIpAddress != null and voipIp.srcIpAddress != ''">
|
||||
and t.src_ip_address =#{voipIp.srcIpAddress,jdbcType=VARCHAR}
|
||||
<if test="voipAccount.cfgKeywords != null and voipAccount.cfgKeywords != ''">
|
||||
REPLACE(s.cfg_keywords,'***and***','|') LIKE concat(concat('%',#{voipAccount.cfgKeywords,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="voipIp.srcPort != null and voipIp.srcPort != ''">
|
||||
and t.src_port =#{voipIp.srcPort,jdbcType=VARCHAR}
|
||||
</if>
|
||||
</where>
|
||||
)
|
||||
</if> -->
|
||||
<if test="(ntcSubscribeIdCfg.cfgKeywords != null and ntcSubscribeIdCfg.cfgKeywords != '') ">
|
||||
AND r.compile_id in (select f.compile_id from ntc_subscribe_id_cfg f
|
||||
<where>
|
||||
<if test="ntcSubscribeIdCfg.cfgKeywords != null and ntcSubscribeIdCfg.cfgKeywords != ''">
|
||||
and f.cfg_keywords like concat(concat('%',#{ntcSubscribeIdCfg.cfgKeywords,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
and f.compile_id =#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
)
|
||||
</where>
|
||||
)
|
||||
</if>
|
||||
<if test="avContUrlCfg!=null">
|
||||
<if test="(avContUrlCfg.cfgKeywords != null and avContUrlCfg.cfgKeywords != '') ">
|
||||
AND r.compile_id in (select s.compile_id from av_cont_url_cfg s
|
||||
<where>
|
||||
<if test="avContUrlCfg.cfgKeywords != null and avContUrlCfg.cfgKeywords != ''">
|
||||
and s.cfg_keywords like concat(concat('%',#{avContUrlCfg.cfgKeywords,jdbcType=VARCHAR}),'%')
|
||||
</if>
|
||||
<if test="compileId != null">
|
||||
and s.compile_id =#{compileId,jdbcType=INTEGER}
|
||||
</if>
|
||||
</where>
|
||||
)
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 数据范围过滤 -->
|
||||
<!-- 数据范围过滤 -->
|
||||
${sqlMap.dsf}
|
||||
</trim>
|
||||
<choose>
|
||||
|
||||
Reference in New Issue
Block a user