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
a7d5f3d9
Commit
a7d5f3d9
authored
Aug 13, 2024
by
huyf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海运已装单bug
parent
fc813808
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ShipmentLoadExcelExportListener2.java
...e/shipment/listener/ShipmentLoadExcelExportListener2.java
+5
-1
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentLoadExcelExportListener2.java
View file @
a7d5f3d9
...
@@ -234,11 +234,13 @@ public class ShipmentLoadExcelExportListener2 {
...
@@ -234,11 +234,13 @@ public class ShipmentLoadExcelExportListener2 {
List
<
OrderItemDO
>
orderItems
=
boxPreload
.
stream
().
map
(
item
->
orderItemService
.
getOrderItem
(
item
.
getOrderItemId
())).
collect
(
Collectors
.
toList
());
List
<
OrderItemDO
>
orderItems
=
boxPreload
.
stream
().
map
(
item
->
orderItemService
.
getOrderItem
(
item
.
getOrderItemId
())).
collect
(
Collectors
.
toList
());
for
(
OrderItemDO
item
:
orderItems
)
{
for
(
OrderItemDO
item
:
orderItems
)
{
List
<
OrderWarehouseInDO
>
orderWarehouseInDOS
=
orderWarehouseInService
.
selectList
(
OrderWarehouseInDO:
:
getOrderItemId
,
item
.
getOrderItemId
());
List
<
OrderWarehouseInDO
>
orderWarehouseInDOS
=
orderWarehouseInService
.
selectList
(
OrderWarehouseInDO:
:
getOrderItemId
,
item
.
getOrderItemId
());
boolean
addColorFlag
=
true
;
for
(
OrderWarehouseInDO
orderWarehouseInDO
:
orderWarehouseInDOS
)
{
for
(
OrderWarehouseInDO
orderWarehouseInDO
:
orderWarehouseInDOS
)
{
if
(
CollectionUtil
.
isNotEmpty
(
orderWarehouseInDO
.
getOrderWarehouseInDetailsVOList
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
orderWarehouseInDO
.
getOrderWarehouseInDetailsVOList
()))
{
int
andIncrement
=
colorRowNum
.
getAndIncrement
();
int
andIncrement
=
colorRowNum
.
getAndIncrement
();
colorMap
.
put
(
String
.
valueOf
(
andIncrement
),
colorList
.
get
(
colorIndex
));
colorMap
.
put
(
String
.
valueOf
(
andIncrement
),
colorList
.
get
(
colorIndex
));
colorRowList
.
add
(
andIncrement
);
//这里加1是为了设置颜色时过滤掉入仓记录那条
colorRowList
.
add
(
andIncrement
);
//这里加1是为了设置颜色时过滤掉入仓记录那条
addColorFlag
=
false
;
break
;
break
;
}
}
}
}
...
@@ -345,7 +347,9 @@ public class ShipmentLoadExcelExportListener2 {
...
@@ -345,7 +347,9 @@ public class ShipmentLoadExcelExportListener2 {
totalNum
=
totalNum
+
item
.
getWarehouseInInfoVO
().
getCartonsNum
();
totalNum
=
totalNum
+
item
.
getWarehouseInInfoVO
().
getCartonsNum
();
totalVolume
=
totalVolume
.
add
(
item
.
getWarehouseInInfoVO
().
getVolume
());
totalVolume
=
totalVolume
.
add
(
item
.
getWarehouseInInfoVO
().
getVolume
());
totalWeight
=
totalWeight
.
add
(
item
.
getWarehouseInInfoVO
().
getWeight
());
totalWeight
=
totalWeight
.
add
(
item
.
getWarehouseInInfoVO
().
getWeight
());
colorRowNum
.
getAndIncrement
();
if
(
addColorFlag
)
{
colorRowNum
.
getAndIncrement
();
}
}
}
}
}
colorRowNum
.
getAndAdd
(
2
);
colorRowNum
.
getAndAdd
(
2
);
...
...
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