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
bbde3d85
Commit
bbde3d85
authored
Oct 31, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单撤销到仓时情况订单项中的到仓数据
parent
f9c0e845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
OrderBusinessServiceImpl.java
...le/order/service/order/impl/OrderBusinessServiceImpl.java
+9
-1
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderBusinessServiceImpl.java
View file @
bbde3d85
...
...
@@ -4054,7 +4054,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
BigDecimal
sumCheckWeight
=
BigDecimal
.
ZERO
;
List
<
OrderItemDO
>
orderItemDOList
=
orderItemMapper
.
selectList
(
new
LambdaQueryWrapper
<
OrderItemDO
>().
eq
(
OrderItemDO:
:
getOrderId
,
orderId
));
for
(
OrderItemDO
orderItemDO
:
orderItemDOList
)
{
if
(
orderItemCheckWarehouseVOMap
.
containsKey
(
orderItemDO
.
getOrderItemId
())){
if
(
orderItemCheckWarehouseVOMap
.
containsKey
(
orderItemDO
.
getOrderItemId
()))
{
OrderItemCheckWarehouseVO
warehouseCheckDO
=
orderItemCheckWarehouseVOMap
.
get
(
orderItemDO
.
getOrderItemId
());
WarehouseCheckInfoVO
warehouseCheckInfoVO
=
warehouseCheckDO
.
getWarehouseCheckInfoVO
();
orderItemDO
.
setCheckBrand
(
warehouseCheckDO
.
getCheckBrand
());
...
...
@@ -4119,6 +4119,14 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
Integer
orderStatus
=
orderDO
.
getStatus
();
Integer
orderInWarehouseState
=
orderDO
.
getInWarehouseState
();
Integer
orderShipmentState
=
orderDO
.
getShipmentState
();
orderItemMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderItemDO
>()
.
set
(
OrderItemDO:
:
getWarehouseCheckInfo
,
null
)
.
set
(
OrderItemDO:
:
getCheckBrand
,
null
)
.
set
(
OrderItemDO:
:
getCheckBrandType
,
null
)
.
set
(
OrderItemDO:
:
getWarehouseCheckProdAttrIds
,
null
)
.
set
(
OrderItemDO:
:
getCheckMaterial
,
null
)
.
eq
(
OrderItemDO:
:
getOrderId
,
orderId
)
);
// 更新订单到仓数据,回滚订单状态
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getCheckNum
,
0
)
...
...
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