Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
haoban3.0
haoban-manage3.0
Commits
81a7f6bc
Commit
81a7f6bc
authored
May 19, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-recommend2' into 'developer'
跟进时间只取近一年记录 See merge request
!2875
parents
f166bee5
c7552741
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
TabContactFollowMapper.xml
.../main/resources/mapper/contact/TabContactFollowMapper.xml
+3
-2
No files found.
haoban-manage3-service/src/main/resources/mapper/contact/TabContactFollowMapper.xml
View file @
81a7f6bc
...
...
@@ -65,7 +65,7 @@
<include
refid=
"Base_Column_List"
/>
FROM tab_contact_follow
<where>
enterprise_id = #{enterpriseId} and delete_flag = 0
enterprise_id = #{enterpriseId} and delete_flag = 0
and follow_time >= now() - interval 1 year
<if
test=
"search.clerkId != null and search.clerkId != ''"
>
AND clerk_id = #{search.clerkId}
</if>
...
...
@@ -87,6 +87,7 @@
INNER JOIN ( SELECT clerk_id, member_id, MAX( follow_time ) AS max_follow_time FROM tab_contact_follow WHERE
enterprise_id = #{enterpriseId}
and delete_flag = 0
and follow_time >= now() - interval 1 year
and member_id IN
<foreach
item=
"item"
index=
"index"
collection=
"memberIdList"
open=
"("
separator=
","
close=
")"
>
#{item}
...
...
@@ -96,7 +97,7 @@
AND t.member_id = latest.member_id
AND t.follow_time = latest.max_follow_time
where t.enterprise_id = #{enterpriseId}
and t.delete_flag = 0
and t.delete_flag = 0
and t.follow_time >= now() - interval 1 year
<if
test=
"clerkId!=null and clerkId!=''"
>
and t.clerk_id = #{clerkId}
</if>
...
...
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