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
129de5c0
Commit
129de5c0
authored
Nov 20, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放货空指针异常修复
parent
a1d44d78
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
20240909.sql
sql/v2.1/20240909.sql
+1
-1
OrderCargoControlPickServiceImpl.java
...derCargoControlPick/OrderCargoControlPickServiceImpl.java
+4
-1
No files found.
sql/v2.1/20240909.sql
View file @
129de5c0
...
...
@@ -18,4 +18,4 @@ alter table `ecw_order`
-- 批量刷新订单放货数量、放货率
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
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
=
IFNULL
(
t1
.
releaseNum
,
0
),
t
.
release_ratio
=
IFNULL
(
ROUND
(
t1
.
releaseNum
/
t
.
sum_num
,
2
)
*
100
,
0
);
\ No newline at end of file
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickServiceImpl.java
View file @
129de5c0
...
...
@@ -320,8 +320,11 @@ public class OrderCargoControlPickServiceImpl extends AbstractService<OrderCargo
orderCargoControlPick
.
getConsigneeName
()
+
"/"
+
(
StringUtils
.
isNotBlank
(
orderCargoControlPick
.
getConsigneeNameEn
())
?
orderCargoControlPick
.
getConsigneeNameEn
()
:
"空"
),
orderCargoControlPick
.
getConsigneeCountryCode
()
+
orderCargoControlPick
.
getConsigneePhone
());
}
if
(
Objects
.
isNull
(
orderDO
.
getReleaseNum
()))
orderDO
.
setReleaseNum
(
0
);
orderDO
.
setReleaseNum
(
orderDO
.
getReleaseNum
()
+
orderCargoControlPick
.
getPickNum
());
if
(
Objects
.
nonNull
(
orderDO
.
getSumNum
())
&&
orderDO
.
getSumNum
()
>
0
)
{
orderDO
.
setReleaseRatio
(
new
BigDecimal
(
orderDO
.
getReleaseNum
()).
divide
(
new
BigDecimal
(
orderDO
.
getSumNum
()),
2
,
RoundingMode
.
HALF_UP
).
multiply
(
new
BigDecimal
(
"100"
)));
}
orderService
.
updateById
(
orderDO
);
// 订单控货信息日志补充
orderBusinessService
.
createOrderControlLog
(
orderCargoControlPick
.
getOrderId
(),
4
,
"订单放货"
,
msg
,
0L
);
...
...
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