|
|
|
@ -64,6 +64,21 @@ public class PlanReportListener implements ReportService {
|
|
|
|
|
Long warehouseId = bean.getWarehouseId(); |
|
|
|
|
BizOperationEnums bizOperation = bean.getBizOperation(); |
|
|
|
|
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)) { |
|
|
|
|
List<PlanDriverbindCarVO> planDriverbindCars = vo.getPlanDriverbindCars(); |
|
|
|
|
String vehicleName = ""; |
|
|
|
@ -77,6 +92,7 @@ public class PlanReportListener implements ReportService {
|
|
|
|
|
Map<String, List<QualityDeliverEntity>> cmpMap = new HashMap<>(); |
|
|
|
|
Map<String, List<QualityDeliverEntity>> ltlMap = new HashMap<>(); |
|
|
|
|
Map<String, List<QualityDeliverEntity>> invMap = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
Integer totalNum = 0; |
|
|
|
|
for (ReservationVO reservationVO : reservationVOList) { |
|
|
|
|
List<PackageData> details = reservationVO.getPackageDataList(); |
|
|
|
|