mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
分堆打包拆包数据正确性修改
This commit is contained in:
+10
@@ -455,12 +455,22 @@ public class PackServiceImpl implements PackService {
|
||||
|
||||
// 拆包
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public OrderPackRespVO unpacking(Long packageID) {
|
||||
|
||||
OrderPackageDO packageDO = orderPackageMapper.selectById(packageID);
|
||||
|
||||
AssertUtils.notEmpty(packageDO,ORDER_PACK_DATA_ERROR );
|
||||
|
||||
Long orderId = packageDO.getOrderId();
|
||||
|
||||
OrderDO orderDO = ordersMapper.selectById(orderId);
|
||||
|
||||
AssertUtils.notEmpty(orderDO,ORDER_NO_DATA_ERROR);
|
||||
|
||||
orderDO.setPackaged(OrderPackageStatusEnum.UNPACKED.getStatus());
|
||||
ordersMapper.updateById(orderDO);
|
||||
|
||||
packageDO.setStatus(OrderPackageStatusEnum.UNPACKED.getStatus());
|
||||
orderPackageMapper.updateById(packageDO);
|
||||
return typeConversion(packageDO);
|
||||
|
||||
Reference in New Issue
Block a user