|
|
|
@ -2589,7 +2589,12 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
//查询备货任务
|
|
|
|
|
DistributionStockupEntity stockupEntity = distributionStockupMapper.selectById(distributionStockupInfoEntities.get(0).getStockupId()); |
|
|
|
|
if (Func.isNotEmpty(stockupEntity)) { |
|
|
|
|
if (stockupEntity.getAssignStatus().equals(StockAssignStatusConstant.weizhipai.getValue())) { |
|
|
|
|
//查询此备货任务有多少
|
|
|
|
|
List<DistributionStockupInfoEntity> entityList = distributionStockupInfoService.list(Wrappers.<DistributionStockupInfoEntity>query().lambda() |
|
|
|
|
.eq(DistributionStockupInfoEntity::getStockupId, stockupEntity.getId()) |
|
|
|
|
.ne(DistributionStockupInfoEntity::getStockStatus, "4") |
|
|
|
|
); |
|
|
|
|
if (stockupEntity.getAssignStatus().equals(StockAssignStatusConstant.weizhipai.getValue()) && entityList.size() == 1) { |
|
|
|
|
//物理删除关于预约的所有信息
|
|
|
|
|
distributionReservationStocklistMapper.deleteReservationStocklist(reservationEntity.getId()); |
|
|
|
|
distributionReservationPackageMapper.deleteReservationPackage(reservationEntity.getId()); |
|
|
|
|