|
|
|
@ -3194,20 +3194,20 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
loadscanEntity = loadscanEntityList.get(0); |
|
|
|
|
}else { |
|
|
|
|
log.error("##############异常签收包件在其他车次进行装车reservationId:{}", loadscanEntityList.stream().map(DistributionLoadscanEntity::getReservationId).map(String::valueOf).collect(Collectors.joining(","))); |
|
|
|
|
return Resp.scanFail("操作失败", "包件已出库"); |
|
|
|
|
return Resp.scanFail("操作失败", "该包件已在其它车次进行装车"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (loadscanEntityList.size() > 1){ |
|
|
|
|
log.error("##############异常签收包件在其他车次进行装车reservationId:{}", loadscanEntityList.stream().map(DistributionLoadscanEntity::getReservationId).map(String::valueOf).collect(Collectors.joining(","))); |
|
|
|
|
return Resp.scanFail("操作失败", "包件已出库"); |
|
|
|
|
return Resp.scanFail("操作失败", "该包件已在其它车次进行装车"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(loadscanEntity)) { |
|
|
|
|
if (loadscanEntity.getSignforState().equals(LoadScanSigningStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
return Resp.scanFail("重复操作!!", "重复操作"); |
|
|
|
|
if (LoadScanSigningStatusConstant.yiqianshou.getValue().equals(loadscanEntity.getSignforState())) { |
|
|
|
|
return Resp.scanFail("重复操作!!", "重复扫码"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
String content = "包件在"+myCurrentWarehouse.getName()+"由"+AuthUtil.getNickName()+"扫描异常签收,装车方式:补录装车,配送车次号:"+distributionDeliveryListEntity.getTrainNumber()+"预约任务号:"+reservationEntity.getReservationCode(); |
|
|
|
@ -3221,6 +3221,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (Func.isNotEmpty(loadscanEntity)) { |
|
|
|
|
distributionLoadscanEntity = loadscanEntity; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(distributionDeliverySelfEntity.getDriverPhone())) { |
|
|
|
|
distributionLoadscanEntity.setDriverPhone(distributionDeliverySelfEntity.getDriverPhone()); |
|
|
|
|
} |
|
|
|
|