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
295b2149
Commit
295b2149
authored
Aug 31, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 根据客户日志中的创建/接收/捞取的最后行为时间 来更新归属时间
parent
60557476
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
20240830.sql
sql/v2.1/20240830.sql
+8
-0
No files found.
sql/v2.1/20240830.sql
View file @
295b2149
...
@@ -48,3 +48,11 @@ update ecw_customer set roles = '3' where FIND_IN_SET(3, type) != 0;
...
@@ -48,3 +48,11 @@ update ecw_customer set roles = '3' where FIND_IN_SET(3, type) != 0;
update
ecw_customer
set
roles
=
'2,3'
where
FIND_IN_SET
(
2
,
type
)
!=
0
and
FIND_IN_SET
(
3
,
type
)
!=
0
;
update
ecw_customer
set
roles
=
'2,3'
where
FIND_IN_SET
(
2
,
type
)
!=
0
and
FIND_IN_SET
(
3
,
type
)
!=
0
;
-- 根据客户日志中的创建/接收/捞取的最后行为时间 来更新归属时间
update
ecw_customer
a
inner
join
(
select
customer_id
,
max
(
create_time
)
as
maxtime
from
ecw_customer_operate_log
where
(
operate_type
=
5
or
operate_type
=
1
or
operate_type
=
7
)
group
by
customer_id
)
b
on
a
.
id
=
b
.
customer_id
set
a
.
customer_service_confirmed_time
=
b
.
maxtime
where
a
.
deleted
=
0
;
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