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 affa1727
authored
Jun 24, 2026
by
chenxi
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
SOP任务客户接口详情查询,查询客户任务只查询当前时间之前可见的任务
1 parent
334decd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
rpc-dj-strategy/src/main/resources/META-INF/orm/SopTaskCustomerMapper.xml
rpc-dj-strategy/src/main/resources/META-INF/orm/SopTaskCustomerMapper.xml
View file @
affa172
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
FROM sop_strategy_task t
FROM sop_strategy_task t
INNER JOIN dj_car_life_customer_info ci ON t.customer_instance_id = ci.id
INNER JOIN dj_car_life_customer_info ci ON t.customer_instance_id = ci.id
WHERE t.trigger_time >= #{todayStart}
WHERE t.trigger_time >= #{todayStart}
AND t.trigger_time
<
#{tomorrowStart}
AND t.trigger_time
<
now()
AND t.confirm_status = 0
AND t.confirm_status = 0
AND t.execute_status = 0
AND t.execute_status = 0
AND t.deleted_flag = 'N'
AND t.deleted_flag = 'N'
...
@@ -72,20 +72,20 @@
...
@@ -72,20 +72,20 @@
ON t1.customer_instance_id = t2.customer_instance_id
ON t1.customer_instance_id = t2.customer_instance_id
AND t1.execute_time
<
t2.execute_time
AND t1.execute_time
<
t2.execute_time
AND t2.execute_time >= #{weekAgo}
AND t2.execute_time >= #{weekAgo}
AND t2.execute_time
<
#{tomorrowStart}
AND t2.execute_time
<
now()
AND t2.confirm_status IN (-1, 1, 2)
AND t2.confirm_status IN (-1, 1, 2)
AND t2.execute_status IN (2, 3)
AND t2.execute_status IN (2, 3)
AND t2.deleted_flag = 'N'
AND t2.deleted_flag = 'N'
LEFT JOIN sop_strategy_task t3
LEFT JOIN sop_strategy_task t3
ON t1.customer_instance_id = t3.customer_instance_id
ON t1.customer_instance_id = t3.customer_instance_id
AND t3.trigger_time >= #{todayStart}
AND t3.trigger_time >= #{todayStart}
AND t3.trigger_time
<
#{tomorrowStart}
AND t3.trigger_time
<
now()
AND t3.confirm_status = 0
AND t3.confirm_status = 0
AND t3.execute_status = 0
AND t3.execute_status = 0
AND t3.deleted_flag = 'N'
AND t3.deleted_flag = 'N'
INNER JOIN dj_car_life_customer_info ci ON t1.customer_instance_id = ci.id
INNER JOIN dj_car_life_customer_info ci ON t1.customer_instance_id = ci.id
WHERE t1.execute_time >= #{weekAgo}
WHERE t1.execute_time >= #{weekAgo}
AND t1.execute_time
<
#{tomorrowStart}
AND t1.execute_time
<
now()
AND t1.confirm_status IN (-1, 1, 2)
AND t1.confirm_status IN (-1, 1, 2)
AND t1.execute_status IN (2, 3)
AND t1.execute_status IN (2, 3)
AND t1.deleted_flag = 'N'
AND t1.deleted_flag = 'N'
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
AND ci.merchant_id = #{merchantId}
AND ci.merchant_id = #{merchantId}
AND ci.deleted_flag = 'N'
AND ci.deleted_flag = 'N'
AND t.trigger_time >= #{todayStart}
AND t.trigger_time >= #{todayStart}
AND t.trigger_time
<
#{tomorrowStart}
AND t.trigger_time
<
now()
AND t.confirm_status = 0
AND t.confirm_status = 0
AND t.execute_status = 0
AND t.execute_status = 0
AND t.deleted_flag = 'N'
AND t.deleted_flag = 'N'
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
AND ci.merchant_id = #{merchantId}
AND ci.merchant_id = #{merchantId}
AND ci.deleted_flag = 'N'
AND ci.deleted_flag = 'N'
AND t.execute_time >= #{weekAgo}
AND t.execute_time >= #{weekAgo}
AND t.execute_time
<
#{tomorrowStart}
AND t.execute_time
<
now()
AND t.confirm_status IN (-1, 1, 2)
AND t.confirm_status IN (-1, 1, 2)
AND t.execute_status IN (2, 3)
AND t.execute_status IN (2, 3)
AND t.deleted_flag = 'N'
AND t.deleted_flag = 'N'
...
...
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