Browse Source

司机批量签收包件下架BUG修复

pull/2/head
汤建军 10 months ago
parent
commit
02eddcfa76
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockupController.java
  2. 10
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockupController.java

@ -208,8 +208,6 @@ public class DistributionStockupController extends BladeController {
//查询计划包件的EXCEL列表数据
List<DistributionStockupPackageListDetailExcel> listExcel = distributionStockupService.exportStockUptDetail(list);
MyExcelUtil.export(response,listExcel,"备货清单");
}
/**

10
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java

@ -4261,6 +4261,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
}
String signingTime = simpleDateFormat.format(new Date());
List<Long> packageIds = new ArrayList<>();
List<String> packageCodes = new ArrayList<>();
List<String> orderCodes = new ArrayList<>();
if (Func.isNotEmpty(parcelListEntityList)) {
loadingPackageNum+=parcelListEntityList.stream().mapToInt(DistributionParcelListEntity::getQuantity).sum();
@ -4342,6 +4343,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
distributionAsyncService.sendFactory(parcelListEntity, simpleDateFormat.format(new Date()), reservationEntity.getId(), reservationEntity.getReservationCode(), myCurrentWarehouse.getName(), user.getNickName());
packageIds.add(parcelListEntity.getId());
orderCodes.add(parcelListEntity.getOrderCode());
packageCodes.add(parcelListEntity.getOrderPackageCode());
}
//批量维护订单信息
if (Func.isNotEmpty(orderCodes)) {
@ -4355,6 +4357,14 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
//批量推送
distributionAsyncService.sendReviewFactory(distributionSignforEntity.getId(), myCurrentWarehouse.getName(), myCurrentWarehouse.getId());
}
if (Func.isNotEmpty(packageCodes)) {
distributionAsyncService.handlPakcage(packageIds, myCurrentWarehouse.getId());
//批量下架
String collected = packageCodes.stream().distinct().collect(Collectors.joining(","));
log.info(method+"司机批量签收进行包件下架:{}",collected);
warehouseUpdownTypeClient.downDeliveryPackage(collected, myCurrentWarehouse.getId());
}
}
//维护客户信息状态

Loading…
Cancel
Save