Browse Source

feat(all): 配送明细报表

1 优化配送明细广播推送
pre-production
zhaoqiaobo 4 weeks ago
parent
commit
65c9d5c6a9
  1. 16
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/PlanReportListener.java

16
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/receiver/report/PlanReportListener.java

@ -64,6 +64,21 @@ public class PlanReportListener implements ReportService {
Long warehouseId = bean.getWarehouseId(); Long warehouseId = bean.getWarehouseId();
BizOperationEnums bizOperation = bean.getBizOperation(); BizOperationEnums bizOperation = bean.getBizOperation();
List<ReservationVO> reservationVOList = vo.getReservationVOList(); List<ReservationVO> reservationVOList = vo.getReservationVOList();
// 删除,根据车次号删除
if (bizOperation.equals(BizOperationEnums.DELETE)) {
String trainNumber = vo.getTrainNumber();
if(StrUtil.isNotEmpty(trainNumber)){
List<QualityDeliverEntity> entities = qualityDeliverService.list(Wrappers.<QualityDeliverEntity>lambdaQuery()
.select(QualityDeliverEntity::getId)
.eq(QualityDeliverEntity::getPlanTrainNumber, trainNumber));
if (CollUtil.isNotEmpty(entities)) {
for (QualityDeliverEntity entity : entities) {
sendReport(entity, bizOperation);
}
}
}
return;
}
if (CollUtil.isNotEmpty(reservationVOList)) { if (CollUtil.isNotEmpty(reservationVOList)) {
List<PlanDriverbindCarVO> planDriverbindCars = vo.getPlanDriverbindCars(); List<PlanDriverbindCarVO> planDriverbindCars = vo.getPlanDriverbindCars();
String vehicleName = ""; String vehicleName = "";
@ -77,6 +92,7 @@ public class PlanReportListener implements ReportService {
Map<String, List<QualityDeliverEntity>> cmpMap = new HashMap<>(); Map<String, List<QualityDeliverEntity>> cmpMap = new HashMap<>();
Map<String, List<QualityDeliverEntity>> ltlMap = new HashMap<>(); Map<String, List<QualityDeliverEntity>> ltlMap = new HashMap<>();
Map<String, List<QualityDeliverEntity>> invMap = new HashMap<>(); Map<String, List<QualityDeliverEntity>> invMap = new HashMap<>();
Integer totalNum = 0; Integer totalNum = 0;
for (ReservationVO reservationVO : reservationVOList) { for (ReservationVO reservationVO : reservationVOList) {
List<PackageData> details = reservationVO.getPackageDataList(); List<PackageData> details = reservationVO.getPackageDataList();

Loading…
Cancel
Save