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
4c1bf40a
Commit
4c1bf40a
authored
Dec 04, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 非备货退仓时 将订单的上一次打包数据更新为null。
parent
c8f8b356
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
OrderWarehouseInServiceImpl.java
...service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
+10
-11
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderWarehouseIn/OrderWarehouseInServiceImpl.java
View file @
4c1bf40a
...
...
@@ -4468,6 +4468,15 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
if
(
isPackagingRollback
)
{
// 更新前一次打包数据
orderDO
=
this
.
updateOrderSumPrevPacked
(
orderId
);
}
else
{
//退仓时 将订单的上一次打包数据更新为null
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getFirstStockedTime
,
null
)
.
set
(
OrderDO:
:
getSumVolumePrevPacked
,
null
)
.
set
(
OrderDO:
:
getSumWeightPrevPacked
,
null
)
.
set
(
OrderDO:
:
getSumCartonsNumPrevPacked
,
null
)
.
set
(
OrderDO:
:
getSumQuantityAllPrevPacked
,
null
)
.
eq
(
OrderDO:
:
getOrderId
,
orderId
));
}
// 添加仓库操作纪录
...
...
@@ -4515,18 +4524,8 @@ public class OrderWarehouseInServiceImpl extends AbstractService<OrderWarehouseI
orderLabelService
.
saveOrUpdateLabel
(
SaveOrUpdateOrderLabelDto
.
builder
().
orderId
(
orderId
).
orderLabelDtoList
(
labelDtoList
).
isAddLog
(
false
).
build
());
}
//退仓时 将订单的上一次打包数据更新为null
orderMapper
.
update
(
null
,
new
LambdaUpdateWrapper
<
OrderDO
>()
.
set
(
OrderDO:
:
getFirstStockedTime
,
null
)
.
set
(
OrderDO:
:
getSumVolumePrevPacked
,
null
)
.
set
(
OrderDO:
:
getSumWeightPrevPacked
,
null
)
.
set
(
OrderDO:
:
getSumCartonsNumPrevPacked
,
null
)
.
set
(
OrderDO:
:
getSumQuantityAllPrevPacked
,
null
)
.
eq
(
OrderDO:
:
getOrderId
,
orderId
));
// 更新订单为普货
// 重置订单为普货,为计价做准备。后续完成入仓或完成备货时会处理。
orderService
.
updateOrderType
(
orderId
,
1
);
// 更新订单入仓信息
OrderWarehouseInVO
orderWarehouseInVO
=
new
OrderWarehouseInVO
();
orderWarehouseInVO
.
setOrderId
(
orderId
);
...
...
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