Commit bbde3d85 authored by zhengyi's avatar zhengyi

订单撤销到仓时情况订单项中的到仓数据

parent f9c0e845
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment