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
2d75e14f
Commit
2d75e14f
authored
Mar 06, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-fix' into release
parents
164fce4e
84dae49f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
MakeBillOfLadingServiceImpl.java
...service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
+2
-2
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/makeBillOfLading/MakeBillOfLadingServiceImpl.java
View file @
2d75e14f
...
@@ -1083,11 +1083,11 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
...
@@ -1083,11 +1083,11 @@ public class MakeBillOfLadingServiceImpl extends AbstractService<MakeBillOfLadin
return
paramMap
;
return
paramMap
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
//订单项合计
//订单项合计
int
totalNum
=
orderItemVOList
.
stream
().
filter
(
item
->
item
.
getWarehouseInInfoVO
()
!=
null
).
mapToInt
(
item
->
item
.
getWarehouseInInfoVO
().
getCartonsNum
()).
sum
();
int
totalNum
=
orderItemVOList
.
stream
().
filter
(
item
->
item
.
getWarehouseInInfoVO
()
!=
null
&&
item
.
getWarehouseInInfoVO
().
getCartonsNum
()
>
0
).
mapToInt
(
item
->
item
.
getWarehouseInInfoVO
().
getCartonsNum
()).
sum
();
BigDecimal
totalVolume
=
BigDecimal
.
ZERO
;
BigDecimal
totalVolume
=
BigDecimal
.
ZERO
;
BigDecimal
totalWeight
=
BigDecimal
.
ZERO
;
BigDecimal
totalWeight
=
BigDecimal
.
ZERO
;
for
(
OrderItemDO
orderItemDO
:
orderItemVOList
)
{
for
(
OrderItemDO
orderItemDO
:
orderItemVOList
)
{
if
(
orderItemDO
.
getWarehouseInInfoVO
()
!=
null
)
{
if
(
orderItemDO
.
getWarehouseInInfoVO
()
!=
null
&&
orderItemDO
.
getWarehouseInInfoVO
().
getCartonsNum
()
>
0
)
{
totalVolume
=
totalVolume
.
add
(
orderItemDO
.
getWarehouseInInfoVO
().
getWeight
());
totalVolume
=
totalVolume
.
add
(
orderItemDO
.
getWarehouseInInfoVO
().
getWeight
());
if
(
Objects
.
nonNull
(
orderItemDO
.
getChargeWeight
())
&&
orderItemDO
.
getChargeWeight
().
compareTo
(
orderItemDO
.
getMinMeteringWeight
())
>
0
)
{
if
(
Objects
.
nonNull
(
orderItemDO
.
getChargeWeight
())
&&
orderItemDO
.
getChargeWeight
().
compareTo
(
orderItemDO
.
getMinMeteringWeight
())
>
0
)
{
totalWeight
=
totalWeight
.
add
(
orderItemDO
.
getChargeWeight
());
totalWeight
=
totalWeight
.
add
(
orderItemDO
.
getChargeWeight
());
...
...
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