Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
19cebcff
Commit
19cebcff
authored
Aug 29, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询未跟进时间不对应
parent
58ebe2e5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/main/resources/mapping/crm/CrmClientDataMapper.xml
+7
-7
No files found.
src/main/resources/mapping/crm/CrmClientDataMapper.xml
View file @
19cebcff
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
@@ -226,7 +226,7 @@
...
@@ -226,7 +226,7 @@
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
@@ -282,7 +282,7 @@
...
@@ -282,7 +282,7 @@
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
@@ -331,7 +331,7 @@
...
@@ -331,7 +331,7 @@
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
@@ -385,7 +385,7 @@
...
@@ -385,7 +385,7 @@
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
AND (ccd.client_name LIKE CONCAT('%', #{like}, '%') OR ccd.client_cellphone LIKE CONCAT('%', #{like}, '%'))
</if>
</if>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
<if
test=
"unfollowedDays != null and unfollowedDays > 0"
>
AND DATEDIFF(NOW(),
(SELECT MAX(last_follow_time) FROM crm_client_follow ccf WHERE ccf.cid = ccd.id)) >=
#{unfollowedDays}
AND DATEDIFF(NOW(),
last_follow_time)
<![CDATA[ <= ]]>
#{unfollowedDays}
</if>
</if>
<if
test=
"followNumber != null and followNumber > 0"
>
<if
test=
"followNumber != null and followNumber > 0"
>
AND (
AND (
...
...
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