Commit ad36bc6d by liulianglang

查询修改

parent 003d521e
...@@ -38,11 +38,15 @@ ...@@ -38,11 +38,15 @@
<if test="dwdm != null and dwdm != ''"> <if test="dwdm != null and dwdm != ''">
unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%') unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%')
</if> </if>
<if test="dwList != null and dwList.size() > 0"> <if test="dwList != null and dwList.size() > 0">
and unitcode in and
<foreach collection="dwList" item="dw" open="(" close=")" separator=","> <foreach collection="dwList" item="dws" open="(" close=")" separator=" or ">
unitcode in
<foreach collection="dws" item="dw" separator="," open="(" close=")">
#{dw,jdbcType=VARCHAR} #{dw,jdbcType=VARCHAR}
</foreach> </foreach>
</foreach>
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%') and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%')
...@@ -64,11 +68,15 @@ ...@@ -64,11 +68,15 @@
<if test="dwdm != null and dwdm != ''"> <if test="dwdm != null and dwdm != ''">
unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%') unitcode like CONCAT(#{dwdm,jdbcType=VARCHAR}, '%')
</if> </if>
<if test="dwList != null and dwList.size() > 0"> <if test="dwList != null and dwList.size() > 0">
and unitcode in and
<foreach collection="dwList" item="dw" open="(" close=")" separator=","> <foreach collection="dwList" item="dws" open="(" close=")" separator=" or ">
unitcode in
<foreach collection="dws" item="dw" separator="," open="(" close=")">
#{dw,jdbcType=VARCHAR} #{dw,jdbcType=VARCHAR}
</foreach> </foreach>
</foreach>
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%') and true_name like CONCAT('%', #{xm,jdbcType=VARCHAR}, '%')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment