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
c964d7c8
Commit
c964d7c8
authored
Dec 20, 2024
by
honghy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
空运/海运已装单添加底色
parent
cb465d0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
ShipmentAirLoadExcelExportListener.java
...shipment/listener/ShipmentAirLoadExcelExportListener.java
+6
-6
ShipmentLoadExcelExportListener2.java
...e/shipment/listener/ShipmentLoadExcelExportListener2.java
+6
-10
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentAirLoadExcelExportListener.java
View file @
c964d7c8
...
...
@@ -282,16 +282,16 @@ public class ShipmentAirLoadExcelExportListener {
AirLoadDto
preloadDto
=
new
AirLoadDto
();
preloadDto
.
setProdAttr
(
getAttrNameByIds
(
item
.
getProdAttrIds
(),
idNameMap
));
// 当订单的报关方式=混合报关,订单的底色为蓝色,#00
00FF
// 当订单的报关方式=自单代报,订单的底色为橙色, #FF
7F
00
// 当订单的报关方式=混合报关,订单的底色为蓝色,#00
B0F0
// 当订单的报关方式=自单代报,订单的底色为橙色, #FF
66
00
// 当订单的商品包含了特性=危险品DG,订单的底色为黄色, #FFFF00
// 当订单的商品包含了特性=危险品DG&订单的报关方式=自单代报/混合报关,底色为
绿色,#00FF
00
// 当订单的商品包含了特性=危险品DG&订单的报关方式=自单代报/混合报关,底色为
黄色,#FFC0
00
if
(
orderInfo
.
getCustomsType
()!=
null
){
preloadDto
.
setCustomsType
(
DictFrameworkUtils
.
getDictDataFromCache
(
"customs_type"
,
orderInfo
.
getCustomsType
()+
""
).
getLabel
());
if
(
CustomsTypeEnum
.
CUSTOMS_TYPE_3
.
getValue
().
equals
(
orderInfo
.
getCustomsType
())){
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
ROYAL
_BLUE
.
index
);
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
SKY
_BLUE
.
index
);
if
(
prodAttrTag
){
color
=
Integer
.
valueOf
(
IndexedColors
.
BRIGHT_GREEN
.
index
);
color
=
Integer
.
valueOf
(
IndexedColors
.
GOLD
.
index
);
}
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
color
));
...
...
@@ -301,7 +301,7 @@ public class ShipmentAirLoadExcelExportListener {
}
else
if
(
CustomsTypeEnum
.
CUSTOMS_TYPE_2
.
getValue
().
equals
(
orderInfo
.
getCustomsType
())){
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
ORANGE
.
index
);
if
(
prodAttrTag
){
color
=
Integer
.
valueOf
(
IndexedColors
.
BRIGHT_GREEN
.
index
);
color
=
Integer
.
valueOf
(
IndexedColors
.
GOLD
.
index
);
}
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
color
));
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/listener/ShipmentLoadExcelExportListener2.java
View file @
c964d7c8
...
...
@@ -256,16 +256,16 @@ public class ShipmentLoadExcelExportListener2 {
LoadDto
preloadDto
=
new
LoadDto
();
String
attrNames
=
getAttrNameByIds
(
item
.
getProdAttrIds
(),
idNameMap
);
preloadDto
.
setProdAttr
(
attrNames
);
// 当订单的报关方式=混合报关,订单的底色为蓝色,#00
00FF
// 当订单的报关方式=自单代报,订单的底色为橙色, #FF
7F
00
// 当订单的报关方式=混合报关,订单的底色为蓝色,#00
B0F0
// 当订单的报关方式=自单代报,订单的底色为橙色, #FF
66
00
// 当订单的商品包含了特性=危险品DG,订单的底色为黄色, #FFFF00
// 当订单的商品包含了特性=危险品DG&订单的报关方式=自单代报/混合报关,底色为
绿色,#00FF
00
// 当订单的商品包含了特性=危险品DG&订单的报关方式=自单代报/混合报关,底色为
黄色,#FFC0
00
if
(
orderInfo
.
getCustomsType
()!=
null
){
preloadDto
.
setCustomsType
(
DictFrameworkUtils
.
getDictDataFromCache
(
"customs_type"
,
orderInfo
.
getCustomsType
()+
""
).
getLabel
());
if
(
CustomsTypeEnum
.
CUSTOMS_TYPE_3
.
getValue
().
equals
(
orderInfo
.
getCustomsType
())){
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
ROYAL
_BLUE
.
index
);
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
SKY
_BLUE
.
index
);
if
(
prodAttrTag
){
color
=
Integer
.
valueOf
(
IndexedColors
.
BRIGHT_GREEN
.
index
);
color
=
Integer
.
valueOf
(
IndexedColors
.
GOLD
.
index
);
}
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
color
));
...
...
@@ -275,7 +275,7 @@ public class ShipmentLoadExcelExportListener2 {
}
else
if
(
CustomsTypeEnum
.
CUSTOMS_TYPE_2
.
getValue
().
equals
(
orderInfo
.
getCustomsType
())){
Integer
color
=
Integer
.
valueOf
(
IndexedColors
.
ORANGE
.
index
);
if
(
prodAttrTag
){
color
=
Integer
.
valueOf
(
IndexedColors
.
BRIGHT_GREEN
.
index
);
color
=
Integer
.
valueOf
(
IndexedColors
.
GOLD
.
index
);
}
int
andIncrement2
=
colorRowNum
.
get
();
colorMap2
.
put
(
String
.
valueOf
(
andIncrement2
),
Integer
.
valueOf
(
color
));
...
...
@@ -437,10 +437,6 @@ public class ShipmentLoadExcelExportListener2 {
preloadDto1
.
setSumWeight
(
allTotalWeight
);
preloadDto1
.
setWorth
(
allTotalWorth
);
list
.
add
(
preloadDto1
);
colorMap2
.
put
(
String
.
valueOf
(
andIncrement
+
1
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorMap
.
put
(
String
.
valueOf
(
andIncrement
+
1
),
Integer
.
valueOf
(
IndexedColors
.
YELLOW
.
index
));
colorRowList
.
add
(
andIncrement
+
1
);
colorRowList2
.
add
(
andIncrement
+
1
);
}
WriteTable
writeTable
=
EasyExcel
.
writerTable
(
i
)
...
...
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