|
@@ -64,11 +64,20 @@
|
|
|
<if test="xzqmc != null and xzqmc !=''">
|
|
|
and ssjd = #{xzqmc}
|
|
|
</if>
|
|
|
- <if test="lx != null and lx !=''">
|
|
|
+ <if test="dlbms != null and dlbms.size > 0">
|
|
|
and
|
|
|
- <foreach collection="lx.split(';')" separator=" or " item="id" open="(" close=")">
|
|
|
- zydxzmc = #{id}
|
|
|
- </foreach>
|
|
|
+ <choose>
|
|
|
+ <when test="isOther == true">
|
|
|
+ <foreach collection="dlbms" separator=" and " item="id" open="(" close=")">
|
|
|
+ zydxz not like concat(#{id}, '%')
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ <foreach collection="dlbms" separator=" or " item="id" open="(" close=")">
|
|
|
+ zydxz like concat(#{id}, '%')
|
|
|
+ </foreach>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</if>
|
|
|
<if test="status == '是'.toString()">
|
|
|
and sftb = #{status}
|