Commit 5914e66b authored by yanghao's avatar yanghao Committed by 332784038@qq.com

fix: 解决客户跟进查询条件不正确的bug

parent 0f8573e7
......@@ -21,7 +21,8 @@
AND a.customer_id = #{query.customerId}
</if>
<if test="query.offerIds != null and query.offerIds.size() > 0">
AND FIND_IN_SET(a.offer_id, #{query.offerIds})
AND a.offer_id in
<foreach item='item' index="index" collection='query.offerIds' open='(' separator=',' close=')'>#{item}</foreach>
</if>
<if test="query.followType != null">
......@@ -39,23 +40,28 @@
</if>
<if test="query.followTypes != null and query.followTypes.size() > 0">
AND FIND_IN_SET(a.follow_type, #{query.followTypes})
AND a.follow_type in
<foreach item='item' index="index" collection='query.followTypes' open='(' separator=',' close=')'>#{item}</foreach>
</if>
<if test="query.followMethods != null and query.followMethods.size()>0">
AND FIND_IN_SET(a.follow_method, #{query.followMethods})
AND a.follow_method in
<foreach item='item' index="index" collection='query.followMethods' open='(' separator=',' close=')'>#{item}</foreach>
</if>
<if test="query.resultTypes != null and query.resultTypes.size()>0">
AND FIND_IN_SET(a.result_type, #{query.resultTypes})
AND a.result_type in
<foreach item='item' index="index" collection='query.resultTypes' open='(' separator=',' close=')'>#{item}</foreach>
</if>
<if test="query.statuses != null and query.statuses.size()>0">
AND FIND_IN_SET(a.status, #{query.statuses})
AND a.status in
<foreach item='item' index="index" collection='query.statuses' open='(' separator=',' close=')'>#{item}</foreach>
</if>
<if test="query.followUserIds!= null and query.followUserIds.size() > 0">
AND FIND_IN_SET(a.follow_user_id, #{query.followUserIds})
AND a.follow_user_id in
<foreach item='item' index="index" collection='query.followUserIds' open='(' separator=',' close=')'>#{item}</foreach>
</if>
<if test="query.beginFollowTime != null and query.endFollowTime != null">
......
......@@ -7,7 +7,7 @@ tenant-id: {{adminTenentId}}
Content-Type: application/json
### 客户跟进
GET {{baseUrl}}/customer/followup/page?pageNo=1&pageSize=10&total=0&customerId=51966
GET {{baseUrl}}/customer/followup/page?pageNo=1&pageSize=10&followMethods[0]=1&followMethods[1]=2&beginCreateTime=&endCreateTime=1714485925000
Authorization: Bearer {{token}}
tenant-id: {{adminTenentId}}
Content-Type: application/json
\ No newline at end of file
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