|
|
|
@ -3259,6 +3259,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
reservationPackageEntity.setParceListId(p.getId()); |
|
|
|
|
// 对当前保存的包件再次进行验证
|
|
|
|
|
boolean isExit = checkList(list,reservationEntity.getId(),reservationStockarticleEntity.getStockArticleId(),p.getOrderPackageCode()); |
|
|
|
|
log.info(">>>>> 修改计划 验证包件是否存在 {}",isExit); |
|
|
|
|
if(!isExit){ |
|
|
|
|
distributionReservationPackageService.save(reservationPackageEntity); |
|
|
|
|
distributionAsyncService.checkStockArticleReservationStatus(p); |
|
|
|
@ -3268,15 +3269,18 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
JSONObject jsonObject = getJsonObject(deliveryListEntity, reservationEntity, reservationPackageEntity.getPacketBarCode()); |
|
|
|
|
pushDatas.add(jsonObject); |
|
|
|
|
logs.add(js); |
|
|
|
|
//包件数量累加
|
|
|
|
|
packageNum.getAndAdd(p.getQuantity()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
//依然存在包件,
|
|
|
|
|
oldPackageList.remove(p.getOrderPackageCode()); |
|
|
|
|
} |
|
|
|
|
//包件数量累加
|
|
|
|
|
packageNum.getAndAdd(p.getQuantity()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
//进行取消包件的数据清理
|
|
|
|
|
if (!oldPackageList.isEmpty()) { |
|
|
|
|