|
|
@ -3214,13 +3214,13 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
if (Func.isEmpty(oldOrder.get(s.getId()))) { |
|
|
|
if (Func.isEmpty(oldOrder.get(s.getId()))) { |
|
|
|
DistributionReservationStockarticleEntity reservationStockarticleEntity = new DistributionReservationStockarticleEntity(); |
|
|
|
DistributionReservationStockarticleEntity reservationStockarticleEntity = new DistributionReservationStockarticleEntity(); |
|
|
|
if (s.getIsZero().equals(IsOrNoConstant.no.getValue())) { |
|
|
|
if (s.getIsZero().equals(IsOrNoConstant.no.getValue())) { |
|
|
|
if (Func.isNotEmpty(reservationEntity) && reservationEntity.getSigningStatus().equals(ReservationSigningStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
|
|
|
log.error("#############商配文员对已复核预约进行订单追加reservationId:{}", reservationEntity.getId()); |
|
|
|
|
|
|
|
throw new RuntimeException("收货单位:" + reservationEntity.getMallName() + "客户:" + reservationEntity.getConsignee() + "司机完成签收,无法追加订单"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//新增订单
|
|
|
|
//新增订单
|
|
|
|
List<DistributionParcelListDTO> packageListInfo = s.getPackageListInfo(); |
|
|
|
List<DistributionParcelListDTO> packageListInfo = s.getPackageListInfo(); |
|
|
|
if (Func.isNotEmpty(packageListInfo)) { |
|
|
|
if (Func.isNotEmpty(packageListInfo)) { |
|
|
|
|
|
|
|
if (Func.isNotEmpty(reservationEntity) && reservationEntity.getSigningStatus().equals(ReservationSigningStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
|
|
|
log.error("#############商配文员对已复核预约进行订单追加reservationId:{}", reservationEntity.getId()); |
|
|
|
|
|
|
|
throw new RuntimeException("收货单位:" + reservationEntity.getMallName() + "客户:" + reservationEntity.getConsignee() + "司机完成签收,无法追加订单"); |
|
|
|
|
|
|
|
} |
|
|
|
packageListInfo.forEach(p -> { |
|
|
|
packageListInfo.forEach(p -> { |
|
|
|
orderPackageNum.getAndAdd(p.getQuantity()); |
|
|
|
orderPackageNum.getAndAdd(p.getQuantity()); |
|
|
|
DistributionReservationPackageEntity reservationPackageEntity = new DistributionReservationPackageEntity(); |
|
|
|
DistributionReservationPackageEntity reservationPackageEntity = new DistributionReservationPackageEntity(); |
|
|
@ -3239,6 +3239,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
logs.add(js); |
|
|
|
logs.add(js); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
if (Func.isNotEmpty(reservationEntity) && reservationEntity.getSigningStatus().equals(ReservationSigningStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
|
|
|
log.error("#############商配文员对已复核预约进行订单追加reservationId:{}", reservationEntity.getId()); |
|
|
|
|
|
|
|
throw new RuntimeException("收货单位:" + reservationEntity.getMallName() + "客户:" + reservationEntity.getConsignee() + "司机完成签收,无法追加订单"); |
|
|
|
|
|
|
|
} |
|
|
|
//查询该订单下的所有包件信息并插入该计划中
|
|
|
|
//查询该订单下的所有包件信息并插入该计划中
|
|
|
|
//添加该订单下可操作包件至计划中
|
|
|
|
//添加该订单下可操作包件至计划中
|
|
|
|
//没有进行包件选择 默认添加可配送的所有包件
|
|
|
|
//没有进行包件选择 默认添加可配送的所有包件
|
|
|
|