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
e94db012
Commit
e94db012
authored
Nov 06, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预装校验拦截审批类型修正
parent
e33fdbbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
BoxPreloadGoodsServiceImpl.java
...t/service/boxPreloadGoods/BoxPreloadGoodsServiceImpl.java
+5
-5
No files found.
yudao-module-shipment/yudao-module-shipment-core/src/main/java/cn/iocoder/yudao/module/shipment/service/boxPreloadGoods/BoxPreloadGoodsServiceImpl.java
View file @
e94db012
...
...
@@ -197,7 +197,7 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
.
eq
(
BoxPreloadGoodsDO:
:
getIsRemove
,
0
)
);
OrderDO
orderDO
=
orderService
.
getById
(
orderId
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
1
,
2
,
3
,
4
,
5
,
12
,
31
,
32
)
,
false
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
6
,
11
,
13
,
14
,
22
,
23
)
,
false
);
applicationContext
.
publishEvent
(
approvalTypeCheckEvent
);
if
(
approvalTypeCheckEvent
.
getResult
())
{
throw
exception
(
ORDER_IS_APPROVAL_IN_PROCESS
);
...
...
@@ -209,7 +209,7 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
List
<
GuanLianOrderStatusVO
>
approvalGuanLianOrderList
=
guanLianOrderStatusVOList
.
stream
().
filter
(
vo
->
vo
.
getType
()
==
2
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
approvalGuanLianOrderList
)){
String
orderNoStr
=
approvalGuanLianOrderList
.
stream
().
filter
(
o
->
{
OrderApprovalTypeCheckEvent
guanLianApprovalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
o
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
1
,
2
,
3
,
4
,
5
,
12
,
31
,
32
)
,
false
);
OrderApprovalTypeCheckEvent
guanLianApprovalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
o
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
6
,
11
,
13
,
14
,
22
,
23
)
,
false
);
applicationContext
.
publishEvent
(
guanLianApprovalTypeCheckEvent
);
return
guanLianApprovalTypeCheckEvent
.
getResult
();
}).
map
(
GuanLianOrderStatusVO:
:
getOrderNo
).
collect
(
Collectors
.
joining
(
StrUtil
.
COMMA
));
...
...
@@ -782,7 +782,7 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
OrderDO
orderDO
,
List
<
Long
>
orderItemIdList
)
{
//订单校验是否在审核中
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
1
,
2
,
3
,
4
,
5
,
12
,
31
,
32
)
,
false
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
6
,
11
,
13
,
14
,
22
,
23
)
,
false
);
applicationContext
.
publishEvent
(
approvalTypeCheckEvent
);
if
(
approvalTypeCheckEvent
.
getResult
())
{
throw
exception
(
ORDER_IS_APPROVAL_IN_PROCESS
);
...
...
@@ -794,7 +794,7 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
// List<GuanLianOrderStatusVO> approvalGuanLianOrderList = guanLianOrderStatusVOList.stream().filter(vo -> vo.getType() == 2).collect(Collectors.toList());
// if (CollectionUtil.isNotEmpty(approvalGuanLianOrderList)){
// String orderNoStr = approvalGuanLianOrderList.stream().filter(o -> {
// OrderApprovalTypeCheckEvent guanLianApprovalTypeCheckEvent = new OrderApprovalTypeCheckEvent(o.getOrderId(), null, null, Arrays.asList(
1,2,3,4,5,12,31,32
) , false);
// OrderApprovalTypeCheckEvent guanLianApprovalTypeCheckEvent = new OrderApprovalTypeCheckEvent(o.getOrderId(), null, null, Arrays.asList(
6,11,13,14,22,23
) , false);
// applicationContext.publishEvent(guanLianApprovalTypeCheckEvent);
// return guanLianApprovalTypeCheckEvent.getResult();
// }).map(GuanLianOrderStatusVO::getOrderNo).collect(Collectors.joining(StrUtil.COMMA));
...
...
@@ -2300,7 +2300,7 @@ public class BoxPreloadGoodsServiceImpl extends AbstractService<BoxPreloadGoodsM
OrderConsigneeDO
filterConsigneeDO
=
getFilterOrderConsigneeDO
(
boxDO
,
loadList
);
OrderDO
orderDO
=
orderService
.
getById
(
orderId
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
1
,
2
,
3
,
4
,
5
,
12
,
31
,
32
)
,
false
);
OrderApprovalTypeCheckEvent
approvalTypeCheckEvent
=
new
OrderApprovalTypeCheckEvent
(
orderDO
.
getOrderId
(),
null
,
null
,
Arrays
.
asList
(
6
,
11
,
13
,
14
,
22
,
23
)
,
false
);
applicationContext
.
publishEvent
(
approvalTypeCheckEvent
);
if
(
approvalTypeCheckEvent
.
getResult
())
{
throw
exception
(
ORDER_IS_APPROVAL_IN_PROCESS
);
...
...
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