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
1e47e0bd
Commit
1e47e0bd
authored
Nov 13, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
待预装订单列表校验审批订单逻辑修正
parent
a90fdf19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
10 deletions
+20
-10
BoxPreloadGoodsServiceImpl.java
...t/service/boxPreloadGoods/BoxPreloadGoodsServiceImpl.java
+20
-10
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxPreloadGoods/BoxPreloadGoodsServiceImpl.java
View file @
1e47e0bd
...
...
@@ -2157,14 +2157,19 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
.
collect
(
Collectors
.
toList
());
}
if
(
CollectionUtil
.
isNotEmpty
(
unLoadItemList
))
{
//
过滤审核中的订单
//
过滤审核中的订单 这里需要修改逻辑, 订单除拆单申请/合单申请/调仓申请/订单修改/入仓申请/退仓申请外,其他审批申请不受限制,允许订单预装
Set
<
Long
>
oIdList
=
unLoadItemList
.
stream
()
.
map
(
OrderItemDO:
:
getOrderId
)
.
collect
(
Collectors
.
toSet
());
List
<
OrderApprovalDO
>
orderApprovalList
=
boxService
.
getOrderApprovalIng
(
oIdList
);
List
<
Long
>
approvalIdList
=
orderApprovalList
.
stream
()
.
map
(
OrderApprovalDO:
:
getOrderId
)
.
collect
(
Collectors
.
toList
());
List
<
Long
>
approvalIdList
=
new
ArrayList
<>();
for
(
Long
orderId
:
oIdList
)
{
OrderDO
orderDO
=
orderService
.
getById
(
orderId
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
6
,
11
,
13
,
14
,
22
,
23
)
,
false
);
applicationContext
.
publishEvent
(
approvalTypeCheckEvent
);
if
(
approvalTypeCheckEvent
.
getResult
())
{
approvalIdList
.
add
(
orderId
);
}
}
list
=
list
.
stream
()
.
filter
(
t
->
!
approvalIdList
.
contains
(
t
.
getOrderId
()))
.
collect
(
Collectors
.
toList
());
...
...
@@ -2713,14 +2718,19 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
.
collect
(
Collectors
.
toList
());
}
if
(
CollectionUtil
.
isNotEmpty
(
unLoadItemList
))
{
//
过滤审核中的订单
//
过滤审核中的订单 2024-11-13 这里有新的逻辑修改 订单除拆单申请/合单申请/调仓申请/订单修改/入仓申请/退仓申请外,其他审批申请不受限制,允许订单预装
Set
<
Long
>
oIdList
=
unLoadItemList
.
stream
()
.
map
(
OrderItemDO:
:
getOrderId
)
.
collect
(
Collectors
.
toSet
());
List
<
OrderApprovalDO
>
orderApprovalList
=
boxService
.
getOrderApprovalIng
(
oIdList
);
List
<
Long
>
approvalIdList
=
orderApprovalList
.
stream
()
.
map
(
OrderApprovalDO:
:
getOrderId
)
.
collect
(
Collectors
.
toList
());
List
<
Long
>
approvalIdList
=
new
ArrayList
<>();
for
(
Long
orderId
:
oIdList
)
{
OrderDO
orderDO
=
orderService
.
getById
(
orderId
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
6
,
11
,
13
,
14
,
22
,
23
)
,
false
);
applicationContext
.
publishEvent
(
approvalTypeCheckEvent
);
if
(
approvalTypeCheckEvent
.
getResult
())
{
approvalIdList
.
add
(
orderId
);
}
}
list
=
list
.
stream
()
.
filter
(
t
->
!
approvalIdList
.
contains
(
t
.
getOrderId
()))
.
collect
(
Collectors
.
toList
());
...
...
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