Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-strategy
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 17c5229d
authored
Jun 25, 2026
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
营销策略任务近一周查询逻辑改动,去掉执行时间参数
1 parent
678b41a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
11 deletions
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/SopTaskCustomerService.java
rpc-dj-strategy/src/main/resources/META-INF/orm/SopTaskCustomerMapper.xml
rpc-dj-strategy/src/main/java/cn/com/glsx/dj/strategy/service/SopTaskCustomerService.java
View file @
17c5229
...
...
@@ -139,7 +139,7 @@ public class SopTaskCustomerService {
if
(
dto
.
getConfirmStatus
()
!=
null
&&
dto
.
getConfirmStatus
()
==
2
)
{
return
2
;
}
if
(
dto
.
getExecuteStatus
()
!=
null
&&
dto
.
getExecuteStatus
()
==
3
)
{
if
(
dto
.
getExecuteStatus
()
!=
null
&&
dto
.
getExecuteStatus
()
==
2
)
{
return
3
;
}
return
1
;
...
...
rpc-dj-strategy/src/main/resources/META-INF/orm/SopTaskCustomerMapper.xml
View file @
17c5229
...
...
@@ -71,10 +71,7 @@
LEFT JOIN sop_strategy_task t2
ON t1.customer_instance_id = t2.customer_instance_id
AND t1.execute_time
<
t2.execute_time
AND t2.execute_time >= #{weekAgo}
AND t2.execute_time
<
now()
AND t2.confirm_status IN (-1, 1, 2)
AND t2.execute_status IN (2, 3)
AND t2.deleted_flag = 'N'
LEFT JOIN sop_strategy_task t3
ON t1.customer_instance_id = t3.customer_instance_id
...
...
@@ -84,10 +81,7 @@
AND t3.execute_status = 0
AND t3.deleted_flag = 'N'
INNER JOIN dj_car_life_customer_info ci ON t1.customer_instance_id = ci.id
WHERE t1.execute_time >= #{weekAgo}
AND t1.execute_time
<
now()
AND t1.confirm_status IN (-1, 1, 2)
AND t1.execute_status IN (2, 3)
WHERE t1.confirm_status IN (-1, 1, 2)
AND t1.deleted_flag = 'N'
AND t2.id IS NULL
AND t3.id IS NULL
...
...
@@ -143,10 +137,7 @@
WHERE ci.id = #{customerInstanceId}
AND ci.merchant_id = #{merchantId}
AND ci.deleted_flag = 'N'
AND t.execute_time >= #{weekAgo}
AND t.execute_time
<
now()
AND t.confirm_status IN (-1, 1, 2)
AND t.execute_status IN (2, 3)
AND t.deleted_flag = 'N'
AND a.deleted_flag = 'N'
ORDER BY t.execute_time DESC
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment