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
d9167b1e
Commit
d9167b1e
authored
Dec 12, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运&海运,已装单导出底色调整
parent
41caa58c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
+26
-17
ShipmentAirLoadExcelExportListener.java
...shipment/listener/ShipmentAirLoadExcelExportListener.java
+14
-10
ShipmentLoadExcelExportListener2.java
...e/shipment/listener/ShipmentLoadExcelExportListener2.java
+12
-7
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentAirLoadExcelExportListener.java
View file @
d9167b1e
...
...
@@ -267,6 +267,18 @@ public class ShipmentAirLoadExcelExportListener {
prodAttrTag
=
true
;
}
}
if
(
StringUtils
.
isNotBlank
(
item
.
getOrderWarehouseInDetails
()))
{
item
.
setOrderWarehouseInDetailsVOList
(
JsonUtils
.
parseArray
(
item
.
getOrderWarehouseInDetails
(),
OrderWarehouseInDetailsVO
.
class
));
}
List
<
OrderWarehouseInDetailsVO
>
warehouseInDetailsVOLists
=
item
.
getOrderWarehouseInDetailsVOList
();
if
(
CollectionUtil
.
isNotEmpty
(
warehouseInDetailsVOLists
))
{
for
(
OrderWarehouseInDetailsVO
warehouseInDetailsVOList
:
warehouseInDetailsVOLists
)
{
String
attrNames
=
getAttrNameByIds
(
warehouseInDetailsVOList
.
getProdAttrIds
(),
idNameMap
);
if
(
attrNames
.
contains
(
"危险品"
)){
prodAttrTag
=
true
;
}
}
}
AirLoadDto
preloadDto
=
new
AirLoadDto
();
preloadDto
.
setProdAttr
(
getAttrNameByIds
(
item
.
getProdAttrIds
(),
idNameMap
));
...
...
@@ -279,7 +291,7 @@ public class ShipmentAirLoadExcelExportListener {
if
(
CustomsTypeEnum
.
CUSTOMS_TYPE_3
.
getValue
().
equals
(
orderInfo
.
getCustomsType
())){
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
ROYAL_BLUE
.
index
);
if
(
prodAttrTag
){
color
=
Integer
.
valueOf
(
IndexedColors
.
ROYAL_BLUE
.
index
);
color
=
Integer
.
valueOf
(
IndexedColors
.
BRIGHT_GREEN
.
index
);
}
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
color
));
...
...
@@ -303,12 +315,6 @@ public class ShipmentAirLoadExcelExportListener {
colorMap
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorRowList
.
add
(
andIncrement2
);
colorRowList2
.
add
(
andIncrement2
);
}
else
if
(
prodAttrTag
){
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorMap
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorRowList
.
add
(
andIncrement2
);
colorRowList2
.
add
(
andIncrement2
);
}
}
}
...
...
@@ -390,9 +396,7 @@ public class ShipmentAirLoadExcelExportListener {
preloadDto
.
setTotalVolume
(
orderDO
.
getSumVolumeFinishedWarehouseIn
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
orderInfo
.
getSumVolume
():
orderDO
.
getSumVolumeFinishedWarehouseIn
());
preloadDto
.
setTotalWeight
(
orderDO
.
getSumWeightFinishedWarehouseIn
().
compareTo
(
BigDecimal
.
ZERO
)
==
0
?
orderInfo
.
getSumWeight
():
orderDO
.
getSumWeightFinishedWarehouseIn
());
preloadDtoList
.
add
(
preloadDto
);
if
(
StringUtils
.
isNotBlank
(
item
.
getOrderWarehouseInDetails
()))
{
item
.
setOrderWarehouseInDetailsVOList
(
JsonUtils
.
parseArray
(
item
.
getOrderWarehouseInDetails
(),
OrderWarehouseInDetailsVO
.
class
));
}
if
(
CollectionUtil
.
isNotEmpty
(
item
.
getOrderWarehouseInDetailsVOList
()))
{
mergeCount
=
mergeCount
+
item
.
getOrderWarehouseInDetailsVOList
().
size
();
List
<
OrderWarehouseInDetailsVO
>
orderWarehouseInDetailsVOList
=
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentLoadExcelExportListener2.java
View file @
d9167b1e
...
...
@@ -238,7 +238,18 @@ public class ShipmentLoadExcelExportListener2 {
if
(
attrNames
.
contains
(
"危险品"
)){
prodAttrTag
=
true
;
}
List
<
OrderWarehouseInDO
>
orderWarehouseInDOS
=
orderWarehouseInService
.
selectList
(
OrderWarehouseInDO:
:
getOrderItemId
,
orderItem
.
getOrderItemId
());
for
(
OrderWarehouseInDO
orderWarehouseInDO
:
orderWarehouseInDOS
)
{
List
<
OrderWarehouseInDetailsVO
>
warehouseInDetailsVOLists
=
orderWarehouseInDO
.
getOrderWarehouseInDetailsVOList
();
for
(
OrderWarehouseInDetailsVO
warehouseInDetailsVOList
:
warehouseInDetailsVOLists
)
{
String
attrNames2
=
getAttrNameByIds
(
warehouseInDetailsVOList
.
getProdAttrIds
(),
idNameMap
);
if
(
attrNames2
.
contains
(
"危险品"
)){
prodAttrTag
=
true
;
}
}
}
}
for
(
OrderItemDO
item
:
orderItems
)
{
LoadDto
preloadDto
=
new
LoadDto
();
String
attrNames
=
getAttrNameByIds
(
item
.
getProdAttrIds
(),
idNameMap
);
...
...
@@ -252,7 +263,7 @@ public class ShipmentLoadExcelExportListener2 {
if
(
CustomsTypeEnum
.
CUSTOMS_TYPE_3
.
getValue
().
equals
(
orderInfo
.
getCustomsType
())){
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
ROYAL_BLUE
.
index
);
if
(
prodAttrTag
){
color
=
Integer
.
valueOf
(
IndexedColors
.
ROYAL_BLUE
.
index
);
color
=
Integer
.
valueOf
(
IndexedColors
.
BRIGHT_GREEN
.
index
);
}
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
color
));
...
...
@@ -276,12 +287,6 @@ public class ShipmentLoadExcelExportListener2 {
colorMap
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorRowList
.
add
(
andIncrement2
);
colorRowList2
.
add
(
andIncrement2
);
}
else
if
(
prodAttrTag
){
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorMap
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorRowList
.
add
(
andIncrement2
);
colorRowList2
.
add
(
andIncrement2
);
}
}
}
...
...
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