Commit 5750242e authored by lcl's avatar lcl

u

parent 81c53462
...@@ -13,22 +13,24 @@ ...@@ -13,22 +13,24 @@
where recommend_org_id = 'F17305B4EA4444CBAB12892C7B99E475' where recommend_org_id = 'F17305B4EA4444CBAB12892C7B99E475'
<if test="bo.customerName != null and bo.customerName != '' "> and customer_name like concat('%',#{bo.customerName},'%')</if> <if test="bo.customerName != null and bo.customerName != '' "> and customer_name like concat('%',#{bo.customerName},'%')</if>
<if test="bo.region != null and bo.region != '' "> <if test="bo.region != null and bo.region != '' ">
and register_region in and (
<foreach collection="region" item="item" open="(" separator="," close=")"> <foreach collection="region" item="item" open="(" separator=" or " close=")">
#{item} register_region = #{item}
</foreach> <if test="bo.province != null and bo.province != '' ">
</if> and (
<if test="bo.province != null and bo.province != '' "> <foreach collection="province" item="item" open="(" separator=" or " close=")">
and register_province in register_province = #{item}
<foreach collection="province" item="item" open="(" separator="," close=")"> <if test="bo.city != null and bo.city != '' ">
#{item} and register_city in
</foreach> <foreach collection="city" item="item" open="(" separator="," close=")">
</if> #{item}
<if test="bo.city != null and bo.city != '' "> </foreach>
and register_city in </if>
<foreach collection="city" item="item" open="(" separator="," close=")"> </foreach>
#{item} )
</if>
</foreach> </foreach>
)
</if> </if>
<if test="bo.customerClass != null and bo.customerClass != '' "> <if test="bo.customerClass != null and bo.customerClass != '' ">
and customer_class in and customer_class in
......
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