Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
5914e66b
Commit
5914e66b
authored
Nov 05, 2024
by
yanghao
Committed by
332784038@qq.com
Nov 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 解决客户跟进查询条件不正确的bug
parent
0f8573e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
CustomerFollowupMapper.xml
...main/resources/mapper/customer/CustomerFollowupMapper.xml
+12
-6
CustomerFollowupController.http
...er/admin/customerFollowup/CustomerFollowupController.http
+1
-1
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerFollowupMapper.xml
View file @
5914e66b
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
AND a.customer_id = #{query.customerId}
AND a.customer_id = #{query.customerId}
</if>
</if>
<if
test=
"query.offerIds != null and query.offerIds.size() > 0"
>
<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>
<if
test=
"query.followType != null"
>
<if
test=
"query.followType != null"
>
...
@@ -39,23 +40,28 @@
...
@@ -39,23 +40,28 @@
</if>
</if>
<if
test=
"query.followTypes != null and query.followTypes.size() > 0"
>
<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>
<if
test=
"query.followMethods != null and query.followMethods.size()>0"
>
<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>
<if
test=
"query.resultTypes != null and query.resultTypes.size()>0"
>
<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>
<if
test=
"query.statuses != null and query.statuses.size()>0"
>
<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>
<if
test=
"query.followUserIds!= null and query.followUserIds.size() > 0"
>
<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>
<if
test=
"query.beginFollowTime != null and query.endFollowTime != null"
>
<if
test=
"query.beginFollowTime != null and query.endFollowTime != null"
>
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customerFollowup/CustomerFollowupController.http
View file @
5914e66b
...
@@ -7,7 +7,7 @@ tenant-id: {{adminTenentId}}
...
@@ -7,7 +7,7 @@ tenant-id: {{adminTenentId}}
Content-Type: application/json
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}}
Authorization: Bearer {{token}}
tenant-id: {{adminTenentId}}
tenant-id: {{adminTenentId}}
Content-Type: application/json
Content-Type: application/json
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment