Browse Source

批量取消计划包件维护订单状态

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

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

@ -3578,6 +3578,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
} }
String[] split = distributionCancelReservationPackageDTO.getPackageIds().split(","); String[] split = distributionCancelReservationPackageDTO.getPackageIds().split(",");
List<DistributionParcelListEntity> distributionParcelListEntities = distributionReservationMapper.selectPackageListByReservationId(distributionCancelReservationPackageDTO.getReservationId()); List<DistributionParcelListEntity> distributionParcelListEntities = distributionReservationMapper.selectPackageListByReservationId(distributionCancelReservationPackageDTO.getReservationId());
String orderCodes = distributionParcelListEntities.stream().map(DistributionParcelListEntity::getOrderCode).distinct().collect(Collectors.joining(","));
for (String s : split) { for (String s : split) {
if (Func.isNotEmpty(distributionParcelListEntities)){ if (Func.isNotEmpty(distributionParcelListEntities)){
List<DistributionParcelListEntity> cancelPackage = distributionParcelListEntities.stream().filter(p -> p.getId().equals(Long.parseLong(s))).collect(Collectors.toList()); List<DistributionParcelListEntity> cancelPackage = distributionParcelListEntities.stream().filter(p -> p.getId().equals(Long.parseLong(s))).collect(Collectors.toList());
@ -3605,6 +3606,7 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
} }
} }
} }
distributionStockArticleService.maintenanceOrderInfo(orderCodes,myCurrentWarehouse.getId());
//维护预约单状态 //维护预约单状态
this.maintenanceReservationInfo(distributionCancelReservationPackageDTO.getReservationId()); this.maintenanceReservationInfo(distributionCancelReservationPackageDTO.getReservationId());
//维护预约单数量 //维护预约单数量

Loading…
Cancel
Save