|
|
@ -601,13 +601,13 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
|
|
|
|
|
|
|
|
if (!abnormalEntities.isEmpty()) { |
|
|
|
if (!abnormalEntities.isEmpty()) { |
|
|
|
//判断异常是否属于自身
|
|
|
|
//判断异常是否属于自身
|
|
|
|
boolean flag = abnormalEntities.stream().allMatch(a -> distributionDeliveryListEntity.getId().equals(a.getDeliveryListId()) ); |
|
|
|
boolean flag = abnormalEntities.stream().allMatch(a -> !distributionDeliveryListEntity.getId().equals(a.getDeliveryListId()) || !distrilbutionloadingscanDTO.getReservationId().equals(a.getReservationId())); |
|
|
|
if (flag){ |
|
|
|
if (flag){ |
|
|
|
return Resp.scanFail("包件已存在异常", "包件已存在异常"); |
|
|
|
//该异常属于其他车次
|
|
|
|
} |
|
|
|
|
|
|
|
String collect = abnormalEntities.stream().map(DistributionLoadscanAbnormalEntity::getTrainNumber).collect(Collectors.joining(",")); |
|
|
|
String collect = abnormalEntities.stream().map(DistributionLoadscanAbnormalEntity::getTrainNumber).collect(Collectors.joining(",")); |
|
|
|
log.info("包件已在其他车次存在异常 >>>>当前车次:{},其他车次:{}",distributionDeliveryListEntity.getTrainNumber(),collect); |
|
|
|
log.info("包件已在其他车次存在异常 >>>>当前车次:{},其他车次:{}",distributionDeliveryListEntity.getTrainNumber(),collect); |
|
|
|
return Resp.scanFail("包件在其他车次存在异常", "包件在其他车次存在异常"); |
|
|
|
return Resp.scanFail("包件已在其他车次存在异常", "包件已在其他车次存在异常"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//异步确认包条扫描信息
|
|
|
|
//异步确认包条扫描信息
|
|
|
|
// distributionAsyncService.changeOrderSignforStatus(distrilbutionloadingscanDTO.getBarcode());
|
|
|
|
// distributionAsyncService.changeOrderSignforStatus(distrilbutionloadingscanDTO.getBarcode());
|
|
|
|