|
|
@ -2559,19 +2559,6 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
String info = abnormalEntities.stream().map(DistributionLoadscanAbnormalEntity::getTrainNumber).collect(Collectors.joining(",")); |
|
|
|
String info = abnormalEntities.stream().map(DistributionLoadscanAbnormalEntity::getTrainNumber).collect(Collectors.joining(",")); |
|
|
|
log.info("包件已在其他车次存在异常 >>>>当前车次:{},其他车次:{}", deliveryListEntity.getTrainNumber(), info); |
|
|
|
log.info("包件已在其他车次存在异常 >>>>当前车次:{},其他车次:{}", deliveryListEntity.getTrainNumber(), info); |
|
|
|
return Resp.scanFail("包件已在其他车次存在异常", "包件已在其他车次存在异常"); |
|
|
|
return Resp.scanFail("包件已在其他车次存在异常", "包件已在其他车次存在异常"); |
|
|
|
} else { |
|
|
|
|
|
|
|
//这里需要判定文员是否对该异常进行驳回操作
|
|
|
|
|
|
|
|
List<DistributionLoadscanAbnormalEntity> LoadscanAbnormalEntityList = abnormalEntities.stream().filter(f -> deliveryListEntity.getId().equals(f.getDeliveryListId()) && distrilbutionloadingscanDTO.getReservationId().equals(f.getReservationId())).collect(Collectors.toList()); |
|
|
|
|
|
|
|
if (!LoadscanAbnormalEntityList.isEmpty()) { |
|
|
|
|
|
|
|
//存在异常操作
|
|
|
|
|
|
|
|
if (LoadscanAbnormalEntityList.size() == 1) { |
|
|
|
|
|
|
|
//判断是否进行审核以及驳货操作
|
|
|
|
|
|
|
|
DistributionLoadscanAbnormalEntity distributionLoadscanAbnormalEntity = LoadscanAbnormalEntityList.get(0); |
|
|
|
|
|
|
|
if (distributionLoadscanAbnormalEntity.getAuditingStatus().equals(3)) { |
|
|
|
|
|
|
|
return Resp.scanFail("包件异常已驳回", "包件异常已驳回"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
//判断具体的装车信息
|
|
|
|
//判断具体的装车信息
|
|
|
|
} |
|
|
|
} |
|
|
@ -2748,6 +2735,19 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution |
|
|
|
if (parcelListEntity.getOrderPackageStatus().equals(OrderPackageStatusConstant.yiqianshou.getValue())) { |
|
|
|
if (parcelListEntity.getOrderPackageStatus().equals(OrderPackageStatusConstant.yiqianshou.getValue())) { |
|
|
|
return Resp.scanFail("包件已签收", "包件已签收"); |
|
|
|
return Resp.scanFail("包件已签收", "包件已签收"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
//查询是否存在异常驳回操作
|
|
|
|
|
|
|
|
DistributionLoadscanAbnormalEntity abnormalEntity = distributionLoadscanAbnormalService.getOne(Wrappers.<DistributionLoadscanAbnormalEntity>query().lambda() |
|
|
|
|
|
|
|
.eq(DistributionLoadscanAbnormalEntity::getDeliveryListId, distrilbutionloadingscanDTO.getDeliveryId()) |
|
|
|
|
|
|
|
.eq(DistributionLoadscanAbnormalEntity::getReservationId, distrilbutionloadingscanDTO.getReservationId()) |
|
|
|
|
|
|
|
.eq(DistributionLoadscanAbnormalEntity::getPackageCode, distrilbutionloadingscanDTO.getBarcode()) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
//查询是否存在驳回操作
|
|
|
|
|
|
|
|
if (!Func.isEmpty(abnormalEntity)){ |
|
|
|
|
|
|
|
if (abnormalEntity.getAuditingStatus().equals(3)) { |
|
|
|
|
|
|
|
return Resp.scanFail("包件异常已驳回", "包件异常已驳回"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return R.fail(3006, null); |
|
|
|
return R.fail(3006, null); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|