Commit ad36bc6d by liulianglang

查询修改

parent 003d521e
...@@ -38,12 +38,16 @@ ...@@ -38,12 +38,16 @@
<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">
and unitcode in <if test="dwList != null and dwList.size() > 0">
<foreach collection="dwList" item="dw" open="(" close=")" separator=","> and
#{dw,jdbcType=VARCHAR} <foreach collection="dwList" item="dws" open="(" close=")" separator=" or ">
</foreach> unitcode in
</if> <foreach collection="dws" item="dw" separator="," open="(" close=")">
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach>
</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}, '%')
</if> </if>
...@@ -64,10 +68,14 @@ ...@@ -64,10 +68,14 @@
<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 ">
#{dw,jdbcType=VARCHAR} unitcode in
<foreach collection="dws" item="dw" separator="," open="(" close=")">
#{dw,jdbcType=VARCHAR}
</foreach>
</foreach> </foreach>
</if> </if>
<if test="xm != null and xm != ''"> <if test="xm != null and xm != ''">
......
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