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
286d962d
Commit
286d962d
authored
Sep 09, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据更新脚本
parent
b1561fa6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
20240909.sql
sql/v2.1/20240909.sql
+2
-2
No files found.
sql/v2.1/20240909.sql
View file @
286d962d
...
...
@@ -5,5 +5,5 @@ alter table `ecw_order`
add
column
`release_num`
int
DEFAULT
0
COMMENT
'放货箱数'
;
-- 批量刷新订单放货数量、放货率
update
ecw_order
t
LEFT
JOIN
(
select
ccp
.
order_id
,
ifnull
(
sum
(
ccp
.
pick_num
),
0
)
as
releaseNum
from
ecw_order_cargo_control_pick
ccp
where
ccp
.
order_id
=
o
.
order_id
and
ccp
.
status
in
(
1
,
2
,
3
,
4
,
5
,
6
)
group
by
ccp
.
order_id
)
t1
on
t
.
order_id
=
t1
.
order_id
set
t
.
release_num
=
t1
.
releaseNum
,
t
.
release_ratio
=
ROUND
(
t1
.
releaseNum
/
t
.
sum_num
,
2
)
*
100
;
update
ecw_order
t
LEFT
JOIN
(
select
ccp
.
order_id
,
ifnull
(
sum
(
ccp
.
pick_num
),
0
)
as
releaseNum
from
ecw_order_cargo_control_pick
ccp
where
ccp
.
status
in
(
1
,
2
,
3
,
4
,
5
,
6
)
group
by
ccp
.
order_id
)
t1
on
t
.
order_id
=
t1
.
order_id
set
t
.
release_num
=
t1
.
releaseNum
,
t
.
release_ratio
=
ROUND
(
t1
.
releaseNum
/
t
.
sum_num
,
2
)
*
100
;
\ No newline at end of file
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