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
6dcea7e5
Commit
6dcea7e5
authored
Nov 18, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 理货列表和关联单添加返回整个订单入仓的包装类型
parent
7e8571e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
0 deletions
+23
-0
BoxServiceImpl.java
...der/yudao/module/shipment/service/box/BoxServiceImpl.java
+18
-0
BoxGuanlianOrderBackVO.java
...o/module/shipment/vo/boxTally/BoxGuanlianOrderBackVO.java
+2
-0
BoxTallyBackVO.java
...der/yudao/module/shipment/vo/boxTally/BoxTallyBackVO.java
+3
-0
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/box/BoxServiceImpl.java
View file @
6dcea7e5
...
...
@@ -2198,6 +2198,15 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
// 设置报关方式
boxTallyBackVO
.
setCustomsType
(
boxPreloadGoodsDO
.
getCustomsType
());
// 设置包装类型
String
units
=
orderGoodsItemList
.
stream
()
.
map
(
boxPreloadGoodsBackVO
->
boxPreloadGoodsBackVO
.
getUnits
())
.
filter
(
StringUtils:
:
isNotEmpty
)
.
flatMap
(
t
->
Arrays
.
stream
(
t
.
split
(
","
)))
.
distinct
()
.
collect
(
Collectors
.
joining
(
","
));
boxTallyBackVO
.
setUnits
(
units
);
// 是否有关联单
boolean
hasRelationOrder
=
orderGoodsItemList
.
stream
().
anyMatch
(
t
->
t
.
getGuanLianOrderCount
()
>
0
);
boxTallyBackVO
.
setHasRelationOrder
(
hasRelationOrder
);
...
...
@@ -2298,6 +2307,15 @@ public class BoxServiceImpl extends AbstractService<BoxMapper, BoxDO> implements
// 设置报关方式
boxGuanlianOrderBackVO
.
setCustomsType
(
boxPreloadGoodsDO
.
getCustomsType
());
// 设置包装类型
String
units
=
orderGoodsItemList
.
stream
()
.
map
(
boxPreloadGoodsBackVO
->
boxPreloadGoodsBackVO
.
getUnits
())
.
filter
(
StringUtils:
:
isNotEmpty
)
.
flatMap
(
t
->
Arrays
.
stream
(
t
.
split
(
","
)))
.
distinct
()
.
collect
(
Collectors
.
joining
(
","
));
boxGuanlianOrderBackVO
.
setUnits
(
units
);
// 是否有关联单
boolean
hasRelationOrder
=
orderGoodsItemList
.
stream
().
anyMatch
(
t
->
t
.
getGuanLianOrderCount
()
>
0
);
boxGuanlianOrderBackVO
.
setHasRelationOrder
(
hasRelationOrder
);
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/vo/boxTally/BoxGuanlianOrderBackVO.java
View file @
6dcea7e5
...
...
@@ -61,6 +61,8 @@ public class BoxGuanlianOrderBackVO {
*/
private
Integer
customsType
;
@ApiModelProperty
(
value
=
"包装类型(入仓汇总的,逗号分隔)"
)
private
String
units
;
@ApiModelProperty
(
value
=
"混箱状态, 1-混箱"
)
private
Integer
mixStatus
=
0
;
...
...
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/vo/boxTally/BoxTallyBackVO.java
View file @
6dcea7e5
...
...
@@ -78,6 +78,9 @@ public class BoxTallyBackVO {
@ApiModelProperty
(
value
=
"混箱状态, 1-混箱"
)
private
Integer
mixStatus
=
0
;
@ApiModelProperty
(
value
=
"包装类型(入仓汇总的,逗号分隔)"
)
private
String
units
;
@ApiModelProperty
(
value
=
"是否有关联单"
)
private
Boolean
hasRelationOrder
=
false
;
...
...
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