Commit eb0ace9f authored by chenyuefang's avatar chenyuefang

update

parent 585b4043
...@@ -45,13 +45,28 @@ ...@@ -45,13 +45,28 @@
<if test="bo.customerName != null and bo.customerName != ''"> <if test="bo.customerName != null and bo.customerName != ''">
and ds.customer_name =#{bo.customerName} and ds.customer_name =#{bo.customerName}
</if> </if>
<if test="bo.areaName != null and bo.areaName.size > 0"> <if test="bo.areaName != null and bo.areaName.size > 0 or (bo.provinceName != null and bo.provinceName.size > 0) or (bo.cityName != null and bo.cityName.size > 0)">
and ( and
ds.areaName in <trim prefix="(" suffix=")" prefixOverrides="or">
<foreach collection="bo.areaName" item="areaName" open="(" close=")" separator=","> <if test="bo.areaName != null and bo.areaName.size > 0 ">
#{areaName} or dp.area_name in
</foreach> <foreach collection="bo.areaName" item="areaName" open="(" close=")" separator=",">
) #{areaName}
</foreach>
</if>
<if test="bo.provinceName != null and bo.provinceName.size > 0 ">
or dp.province_name in
<foreach collection="bo.provinceName" item="provinceName" open="(" close=")" separator=",">
#{provinceName}
</foreach>
</if>
<if test="bo.cityName != null and bo.cityName.size > 0 ">
or dp.city_name in
<foreach collection="bo.cityName" item="cityName" open="(" close=")" separator=",">
#{cityName}
</foreach>
</if>
</trim>
</if> </if>
</where> </where>
order by ds.sign_date desc order by ds.sign_date desc
......
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