|
|
|
@ -696,6 +696,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
distributionParcelListEntities.forEach(p->{ |
|
|
|
|
DistributionReservationPackageEntity distributionReservationPackageEntity = new DistributionReservationPackageEntity(); |
|
|
|
|
distributionReservationPackageEntity.setReservationId(distributionReservationDTO.getId()); |
|
|
|
|
distributionReservationPackageEntity.setPacketBarCode(p.getPacketBarCode()); |
|
|
|
|
distributionReservationPackageEntity.setParceListId(p.getId()); |
|
|
|
|
distributionReservationPackageEntity.setStockArticleId(s.getId()); |
|
|
|
|
//维护订单下包件信息
|
|
|
|
@ -710,6 +711,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
distributionReservationPackageEntity.setReservationId(distributionReservationDTO.getId()); |
|
|
|
|
distributionReservationPackageEntity.setParceListId(p.getId()); |
|
|
|
|
distributionReservationPackageEntity.setStockArticleId(s.getId()); |
|
|
|
|
distributionReservationPackageEntity.setPacketBarCode(p.getPacketBarCode()); |
|
|
|
|
distributionReservationPackageService.save(distributionReservationPackageEntity); |
|
|
|
|
}); |
|
|
|
|
s.setAvailableQuantity(s.getAvailableQuantity() - s.getReservationNum()); |
|
|
|
@ -719,6 +721,8 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
//构建预约订单中间表信息
|
|
|
|
|
distributionReservationStockarticleEntity.setReservationNum(s.getReservationNum()); |
|
|
|
|
distributionReservationStockarticleEntity.setStockArticleId(s.getId()); |
|
|
|
|
distributionReservationStockarticleEntity.setIsHaveData(s.getIsHaveData()); |
|
|
|
|
distributionReservationStockarticleEntity.setStockArticleCode(s.getStockArticleCode()); |
|
|
|
|
distributionReservationStockarticleEntity.setReservationId(distributionReservationEntity.getId()); |
|
|
|
|
distributionReservationStockarticleService.save(distributionReservationStockarticleEntity); |
|
|
|
|
//统计订单包件数量
|
|
|
|
|