|
|
|
@ -322,13 +322,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
//转移数据到VO上
|
|
|
|
|
DistributionDeliveryListVO distributionDeliveryListVO = DistributionDeliveryListWrapper.build().entityVO(detail); |
|
|
|
|
|
|
|
|
|
//查询包条数据
|
|
|
|
|
// List<DistributionDeliveryInfoVO> stripList = distributionDeliveryInfoMapper.selectStripList(detail.getId());
|
|
|
|
|
//distributionDeliveryListVO.setPackadeList(stripList);
|
|
|
|
|
//装车件数
|
|
|
|
|
//Integer sum = distributionSignforMapper.selectloadNub(distributionDeliveryListVO.getId());
|
|
|
|
|
// distributionDeliveryListVO.setLoadNub(sum);
|
|
|
|
|
// if (detail.getSource() == 1) {
|
|
|
|
|
//查询客户信息
|
|
|
|
|
List<DistributionDeliveryInfoVO> customList = distributionDeliveryInfoMapper.selectcustomList(detail.getId()); |
|
|
|
|
if (!customList.isEmpty()) { |
|
|
|
@ -3985,6 +3978,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
//客户数量
|
|
|
|
|
AtomicInteger clientTotal = new AtomicInteger(); |
|
|
|
|
List<Long> newIds = new ArrayList<>(); |
|
|
|
|
List<Long> oldIds = new ArrayList<>(); |
|
|
|
|
newReservation.forEach((k, v) -> { |
|
|
|
|
clientTotal.getAndIncrement(); |
|
|
|
|
//统计配送包件总数量
|
|
|
|
@ -4017,6 +4011,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
.in(DistributionReservationEntity::getId,newIds) |
|
|
|
|
.set(DistributionReservationEntity::getReservationStatus,ReservationStatusConstant.daipeisong.getValue()) |
|
|
|
|
); |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+ AuthUtil.getUser().getNickName()+"转车次任务,操作方式:车次添加预约计划,车次号:"+deliveryListEntity.getTrainNumber(); |
|
|
|
|
distributionAsyncService.recordsReservationDeliveryLog(newIds,myCurrentWarehouse,AuthUtil.getUser(),deliveryListEntity.getTrainNumber(),WorkNodeEnums.PLAN_DISTRIBUTION.getCode(),content); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
oldReservation.forEach((m, n) -> { |
|
|
|
@ -4034,7 +4030,14 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
.eq(DistributionStockupInfoEntity::getReservationId,reservationEntity.getId()) |
|
|
|
|
.set(DistributionStockupInfoEntity::getStockStatus,"4") |
|
|
|
|
); |
|
|
|
|
oldIds.add(reservationEntity.getId()); |
|
|
|
|
}); |
|
|
|
|
if (!oldIds.isEmpty()) { |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+ AuthUtil.getUser().getNickName()+"取消配车计划,操作方式:车次移除预约计划,车次号:"+deliveryListEntity.getTrainNumber(); |
|
|
|
|
String ids = oldIds.stream().map(String::valueOf).collect(Collectors.joining(",")); |
|
|
|
|
distributionAsyncService.recordsReservationDeliveryLog(ids,myCurrentWarehouse,AuthUtil.getUser(),deliveryListEntity.getTrainNumber(),WorkNodeEnums.CANCEL_DISTRIBUTION.getCode(),content); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//修改备货信息
|
|
|
|
|
String kind = deliveryListEntity.getKind(); |
|
|
|
|
switch (kind) { |
|
|
|
@ -4117,14 +4120,6 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
deliveryListEntity.setDeliveryNumber(packageTotal.get()); |
|
|
|
|
deliveryListEntity.setInventoryNub(inventoryTotal.get()); |
|
|
|
|
// if (Func.isNotEmpty(stockupInfo.getUnloaderName()) && Func.isNotEmpty(stockupInfo.getUnloaderId())) {
|
|
|
|
|
// deliveryListEntity.setUnloadingTeamId(stockupInfo.getUnloaderId());
|
|
|
|
|
// deliveryListEntity.setUnloadingTeamName(stockupInfo.getUnloaderName());
|
|
|
|
|
// }
|
|
|
|
|
// if (Func.isNotEmpty(stockupInfo.getLoaderId()) && Func.isNotEmpty(stockupInfo.getLoaderName())) {
|
|
|
|
|
// deliveryListEntity.setUnloadingTeamId(stockupInfo.getLoaderId());
|
|
|
|
|
// deliveryListEntity.setUnloadingTeamName(stockupInfo.getLoaderName());
|
|
|
|
|
// }
|
|
|
|
|
deliveryListEntity.setCustomersNumber(clientTotal.get()); |
|
|
|
|
//对配送进行更改
|
|
|
|
|
this.updateById(deliveryListEntity); |
|
|
|
|