修改新增计划企业listxml

zhangtao
dongdingding 1 year ago
parent ec58a75ac4
commit 24ce51e1f8

@ -76,14 +76,14 @@
<if test="enterpriseName != null and enterpriseName != ''">and s.enterprise_name like concat('%', <if test="enterpriseName != null and enterpriseName != ''">and s.enterprise_name like concat('%',
#{enterpriseName}, '%') #{enterpriseName}, '%')
</if> </if>
<if test="district != '' and district.length==3"> <if test="district != null and district.length==3">
and s.district like concat('%',#{district}, '%') and a.district like concat('%',#{district}, '%')
</if> </if>
<if test="district != '' and district.length==6"> <if test="district != null and district.length==6">
and s.district like concat('%',#{district}, '%') and a.district like concat('%',#{district}, '%')
</if> </if>
<if test="district != null and district != ''"> <if test="district != null and district != '' and district.length!=3 and district.length!=6">
and s.district in and a.district in
<foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")"> <foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")">
#{item} #{item}
</foreach> </foreach>

@ -76,13 +76,13 @@
<if test="updateId != null ">and a.update_id = #{updateId}</if> <if test="updateId != null ">and a.update_id = #{updateId}</if>
<if test="userId != null ">and a.user_id = #{userId}</if> <if test="userId != null ">and a.user_id = #{userId}</if>
<if test="deptId != null ">and a.dept_id = #{deptId}</if> <if test="deptId != null ">and a.dept_id = #{deptId}</if>
<if test="district != '' and district.length==3"> <if test="district != null and district.length==3">
and a.district like concat('%',#{district}, '%') and a.district like concat('%',#{district}, '%')
</if> </if>
<if test="district != '' and district.length==6"> <if test="district != null and district.length==6">
and a.district like concat('%',#{district}, '%') and a.district like concat('%',#{district}, '%')
</if> </if>
<if test="district != null and district != ''"> <if test="district != null and district != '' and district.length!=3 and district.length!=6">
and a.district in and a.district in
<foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")"> <foreach item="item" index="index" collection="district.split(',')" open="(" separator="," close=")">
#{item} #{item}

Loading…
Cancel
Save