|
|
|
@ -724,7 +724,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
if (Func.isNotEmpty(loadscaninvnEntity)) { |
|
|
|
|
if (loadscaninvnEntity.getSignforState().equals(LoadScanSigningStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
log.error(method + "库存品:" + s + "已经签收,无需重复签收"); |
|
|
|
|
log.info(method + "库存品:" + s + "已经签收,无需重复签收"); |
|
|
|
|
throw new RuntimeException("库存品:" + s + "已经签收,无需重复签收"); |
|
|
|
|
} |
|
|
|
|
//存在装车数据,进行状态变更即可
|
|
|
|
@ -2458,6 +2458,10 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
.eq(DistributionLoadscanAbnormalEntity::getPackageCode, distrilbutionloadingscanDTO.getBarcode()) |
|
|
|
|
); |
|
|
|
|
if (!abnormalEntities.isEmpty()) { |
|
|
|
|
boolean flag = abnormalEntities.stream().allMatch(a -> distributionDeliveryListEntity.getId().equals(a.getDeliveryListId()) ); |
|
|
|
|
if (flag){ |
|
|
|
|
return Resp.scanFail("包件已存在异常", "包件已存在异常"); |
|
|
|
|
} |
|
|
|
|
String collect = abnormalEntities.stream().map(DistributionLoadscanAbnormalEntity::getTrainNumber).collect(Collectors.joining(",")); |
|
|
|
|
log.info("包件已在其他车次存在异常 >>>>当前车次:{},其他车次:{}",deliveryListEntity.getTrainNumber(),collect); |
|
|
|
|
return Resp.scanFail("包件已在其他车次存在异常", "包件已在其他车次存在异常"); |
|
|
|
|