修改voipList列表查询中 多个结果用=号的bug,修正为in

This commit is contained in:
duandongmei
2018-05-22 19:39:12 +08:00
parent 104dc14155
commit 3640847909

View File

@@ -198,11 +198,11 @@
<if test="cfg.functionId != null">
AND a.function_id=#{cfg.functionId,jdbcType=INTEGER}
</if>
<if test="(cfg.voipIp.srcIpAddress != null and (cfg.voipIp.srcIpAddress != '') or cfg.voipIp.srcPort != null and cfg.voipIp.srcPort != '')">
AND a.compile_id = (select t.compile_id from av_voip_ip_cfg t
<if test="(cfg.voipIp.srcIpAddress != null and cfg.voipIp.srcIpAddress != '') or (cfg.voipIp.srcPort != null and cfg.voipIp.srcPort != '')">
AND a.compile_id in (select t.compile_id from av_voip_ip_cfg t
<where>
<if test="cfg.voipIp.ipAddress != null and cfg.voipIp.ipAddress != ''">
and t.src_ip_address =#{(cfg.voipIp.srcIpAddress,jdbcType=VARCHAR}
<if test="cfg.voipIp.srcIpAddress != null and cfg.voipIp.srcIpAddress != ''">
and t.src_ip_address =#{cfg.voipIp.srcIpAddress,jdbcType=VARCHAR}
</if>
<if test="cfg.voipIp.srcPort != null and cfg.voipIp.srcPort != ''">
and t.src_port =#{cfg.voipIp.srcPort,jdbcType=VARCHAR}
@@ -211,7 +211,7 @@
)
</if>
<if test="(cfg.voipAccount.cfgKeywords != null and cfg.voipAccount.cfgKeywords != '') or (cfg.voipAccount.district != null and cfg.voipAccount.district != '') ">
AND a.compile_id = (select f.compile_id from av_voip_account_cfg f
AND a.compile_id in (select f.compile_id from av_voip_account_cfg f
<where>
<if test="cfg.voipAccount.cfgKeywords != null and cfg.voipAccount.cfgKeywords != ''">
and f.cfg_keywords like concat(concat('%',#{cfg.voipAccount.cfgKeywords,jdbcType=VARCHAR}),'%')
@@ -219,6 +219,9 @@
<if test="cfg.voipAccount.district != null and cfg.voipAccount.district != ''">
and f.district =#{cfg.voipAccount.district,jdbcType=VARCHAR}
</if>
<if test="cfg.compileId != null">
and f.compile_id =#{cfg.compileId,jdbcType=INTEGER}
</if>
</where>
)
</if>