Commit 427dcb3b authored by zhangfeng's avatar zhangfeng

feat(wealth): 优化

parent d99d1771
......@@ -116,7 +116,7 @@
<if test="query.customerId != null">
AND er.`customer_id` = #{query.customerId}
</if>
<if test="query.customerIdList != null and query.customerIdList.size() > 1">
<if test="query.customerIdList != null and query.customerIdList.size() > 0">
AND er.`customer_id` IN
<foreach collection="query.customerIdList" item="item" open="(" separator="," close=")">
#{item}
......@@ -128,7 +128,7 @@
<if test="query.state != null">
AND er.`state` = #{query.state}
</if>
<if test="query.stateList != null and query.stateList.size() > 1">
<if test="query.stateList != null and query.stateList.size() > 0">
AND er.`state` IN
<foreach collection="query.stateList" item="item" open="(" separator="," close=")">
#{item}
......@@ -138,7 +138,7 @@
AND (er.`salesman_id` = #{query.salesmanId} or er.`customer_id` in(select cus.id from ecw_customer cus where
cus.is_customer_service_confirmed = 1 and cus.customer_service = #{query.salesmanId} ))
</if>
<if test="query.salesmanIdList != null and query.salesmanIdList.size() > 1">
<if test="query.salesmanIdList != null and query.salesmanIdList.size() > 0">
AND er.`salesman_id` IN
<foreach collection="query.salesmanIdList" item="item" open="(" separator="," close=")">
#{item}
......
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