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
ffd169b3
Commit
ffd169b3
authored
May 20, 2024
by
liuzeheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装箱提示
parent
185b1bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
BoxPkgOrderServiceImpl.java
.../shipment/service/boxPkgOrder/BoxPkgOrderServiceImpl.java
+13
-0
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxPkgOrder/BoxPkgOrderServiceImpl.java
View file @
ffd169b3
...
...
@@ -42,9 +42,11 @@ import org.springframework.validation.annotation.Validated;
import
javax.annotation.Resource
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
import
static
cn
.
iocoder
.
yudao
.
module
.
order
.
enums
.
ErrorCodeConstants
.
ORDER_IS_PRE_INSTALLED
;
import
static
cn
.
iocoder
.
yudao
.
module
.
order
.
enums
.
ErrorCodeConstants
.
ORDER_NOT_EXISTS
;
import
static
cn
.
iocoder
.
yudao
.
module
.
shipment
.
enums
.
ErrorCodeConstants
.*;
/**
...
...
@@ -102,6 +104,7 @@ public class BoxPkgOrderServiceImpl extends AbstractService<BoxPkgOrderMapper, B
if
(
position
>=
0
)
{
if
(
orderNumCode
.
contains
(
"A"
)
&&
orderNumCode
.
startsWith
(
"A"
)){
return
this
.
scanCodeByOrderNo
(
orderNumCode
,
vo
,
createReqVO
);
}
...
...
@@ -165,6 +168,16 @@ public class BoxPkgOrderServiceImpl extends AbstractService<BoxPkgOrderMapper, B
}
OrderDO
order
=
orderService
.
getById
(
orderId
);
vo
.
setOrderId
(
orderId
);
List
<
BoxOrderCheckInfoDO
>
tags
=
boxOrderCheckInfoService
.
getOrderTagNumList
(
order
);
if
(
CollectionUtil
.
isNotEmpty
(
tags
)){
List
<
BoxOrderCheckInfoDO
>
orderNum
=
tags
.
stream
().
filter
(
t
->
t
.
getOrderNumCode
().
equals
(
orderNumCode
)
||
t
.
getOrderNumCode
()==
orderNumCode
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isEmpty
(
orderNum
)){
throw
exception
(
ORDER_NOT_EXISTS
);
}
}
BoxMergePkgDO
boxMergePkgDO
=
boxMergePkgService
.
selectOne
(
new
LambdaQueryWrapperX
<
BoxMergePkgDO
>().
eq
(
BoxMergePkgDO:
:
getPkgNum
,
createReqVO
.
getPkgNum
()));
vo
.
setPkgId
(
boxMergePkgDO
.
getId
())
;
List
<
BoxPkgOrderDO
>
pkgOrderDO
=
boxPkgOrderMapper
.
selectList
(
new
LambdaQueryWrapperX
<
BoxPkgOrderDO
>().
eq
(
BoxPkgOrderDO:
:
getOrderId
,
orderId
).
eq
(
BoxPkgOrderDO:
:
getPkgId
,
boxMergePkgDO
.
getId
()));
...
...
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