Browse Source

市配预约转配送计划维护配送任务库存品数量

single_db
汤建军 1 year ago
parent
commit
2fdd870f87
  1. 6
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

6
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionReservationServiceImpl.java

@ -2029,8 +2029,10 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
AtomicInteger orderTotal = new AtomicInteger(); AtomicInteger orderTotal = new AtomicInteger();
//客户数量 //客户数量
AtomicInteger clientTotal = new AtomicInteger(); AtomicInteger clientTotal = new AtomicInteger();
//客户数量 //包件数量
AtomicInteger deliveryPackageTotal = new AtomicInteger(); AtomicInteger deliveryPackageTotal = new AtomicInteger();
//库存品数量
AtomicInteger inventoryNub = new AtomicInteger();
//查询运单信息 //查询运单信息
//收货单位 //收货单位
Date date = new Date(); Date date = new Date();
@ -2315,6 +2317,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
reservationEntity.setReservationNum(packageTotal.get()); reservationEntity.setReservationNum(packageTotal.get());
this.updateById(reservationEntity); this.updateById(reservationEntity);
deliveryPackageTotal.getAndAdd(reservationEntity.getReservationNum()); deliveryPackageTotal.getAndAdd(reservationEntity.getReservationNum());
inventoryNub.getAndAdd(reservationEntity.getReservationStockListNum());
DistributionSignforEntity distributionSignforEntity = new DistributionSignforEntity(); DistributionSignforEntity distributionSignforEntity = new DistributionSignforEntity();
distributionSignforEntity.setReservationId(reservationEntity.getId()); distributionSignforEntity.setReservationId(reservationEntity.getId());
distributionSignforEntity.setTrainNumber(trainNumberMa); distributionSignforEntity.setTrainNumber(trainNumberMa);
@ -2402,6 +2405,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
// distributionDeliveryListEntity.setOrderCode(String.join(",", orderNumber)); // distributionDeliveryListEntity.setOrderCode(String.join(",", orderNumber));
distributionDeliveryListEntity.setOrderNumber(orderTotal.get()); distributionDeliveryListEntity.setOrderNumber(orderTotal.get());
distributionDeliveryListEntity.setDeliveryNumber(deliveryPackageTotal.get()); distributionDeliveryListEntity.setDeliveryNumber(deliveryPackageTotal.get());
distributionDeliveryListEntity.setInventoryNub(inventoryNub.get());
distributionDeliveryListEntity.setNoteNumber(deliveryListMa()); distributionDeliveryListEntity.setNoteNumber(deliveryListMa());
distributionDeliveryListEntity.setCustomersNumber(clientTotal.get()); distributionDeliveryListEntity.setCustomersNumber(clientTotal.get());
distributionDeliveryListEntity.setDeliveryListLoadingStatus(DeliveryLoadingStatusConstant.weizhuangche.getValue()); distributionDeliveryListEntity.setDeliveryListLoadingStatus(DeliveryLoadingStatusConstant.weizhuangche.getValue());

Loading…
Cancel
Save