diff --git a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java index 1bb7b8ec9..76f26627b 100644 --- a/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java +++ b/blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/entity/WarehouseRetentionScanEntity.java @@ -241,6 +241,12 @@ public class WarehouseRetentionScanEntity extends TenantEntity { @ApiModelProperty(value = "运单Id") private Long waybillId; + /** + * 装车记录Id + */ + @ApiModelProperty(value = "运单Id") + private Long loadingId; + /** * 仓库Id */ @@ -251,6 +257,6 @@ public class WarehouseRetentionScanEntity extends TenantEntity { * 仓库名称 */ @ApiModelProperty(value = "运单Id") - private Long warehouseName; + private String warehouseName; } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index a9fd75428..8fe78c9c9 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -3053,6 +3053,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl>>>当前车次:{},其他车次:{}", deliveryListEntity.getTrainNumber(), info); return Resp.scanFail("包件已在其他车次存在异常", "包件已在其他车次存在异常"); - } else { - //这里需要判定文员是否对该异常进行驳回操作 - List 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 BaseServiceImplquery().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); } } else { diff --git a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionRecordServiceImpl.java b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionRecordServiceImpl.java index ef5e70901..ce3b950f0 100644 --- a/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionRecordServiceImpl.java +++ b/blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseRetentionRecordServiceImpl.java @@ -206,7 +206,6 @@ public class WarehouseRetentionRecordServiceImpl extends BaseServiceImpl