|
|
|
@ -1082,7 +1082,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
.eq(DistributionLoadscanEntity::getOrderPackageCode, distrilbutionloadingscanDTO.getBarcode())); |
|
|
|
|
if (Func.isNotEmpty(loadscanEntity)) { |
|
|
|
|
if (loadscanEntity.getSignforState().equals(2)) { |
|
|
|
|
return Resp.scanFail("重复扫描", "重复扫描"); |
|
|
|
|
return Resp.scanFail("重复扫描", "包件已签收"); |
|
|
|
|
} |
|
|
|
|
//存在装车记录,进行修改即可
|
|
|
|
|
//进行签收记录数据的维护
|
|
|
|
@ -1213,7 +1213,11 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
//判断客户
|
|
|
|
|
boolean flag = judgmentClient(distributionReservationEntity, parcelListEntity.getStockArticleId()); |
|
|
|
|
if (flag) { |
|
|
|
|
return R.fail(3006, "异常签收"); |
|
|
|
|
if (parcelListEntity.getOrderPackageStatus().equals(OrderPackageStatusConstant.yiqianshou.getValue())){ |
|
|
|
|
return Resp.scanFail("包件已签收", "包件已签收"); |
|
|
|
|
}else { |
|
|
|
|
return R.fail(3006, null); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
return Resp.scanFail("不满足签收条件", "不满足签收条件"); |
|
|
|
|
} |
|
|
|
@ -1571,7 +1575,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
} |
|
|
|
|
if (signforEntity.getReceivedQuantity() <= 0){ |
|
|
|
|
log.error("signforack############未进行签收上传图片"); |
|
|
|
|
return Resp.scanFail("请先进行签收扫描后上传图片","请先进行签收扫描后上传图片"); |
|
|
|
|
return Resp.scanFail(12000,"请先进行签收扫描后上传图片","请先进行签收扫描后上传图片",null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); |
|
|
|
@ -1616,7 +1620,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (Func.isNotEmpty(parcelListEntityList) && parcelListEntityList.size() == 1) { |
|
|
|
|
DistributionParcelListEntity parcelListEntity = parcelListEntityList.get(0); |
|
|
|
|
if (parcelListEntity.getOrderPackageStatus().equals(OrderPackageStatusConstant.yiqianshou.getValue())) { |
|
|
|
|
return Resp.scanFail("操作失败", "包件信息有误"); |
|
|
|
|
return Resp.scanFail("操作失败", "该包件已签收"); |
|
|
|
|
} |
|
|
|
|
//确认该包件确实不属于该配送任务
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionDeliveryListMapper.selectPackageListByDeliveryListId(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
@ -2161,7 +2165,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DistributionAppStockArticleVO> getAppDeliveryorderListPage( DistributionAppDeliveryListDTO distributionDeliveryList) { |
|
|
|
|
if (Func.isNotEmpty(distributionDeliveryList.getReservationId())) { |
|
|
|
|
if (Func.isEmpty(distributionDeliveryList.getReservationId())) { |
|
|
|
|
log.error("参数缺失reservationId:{}", distributionDeliveryList.getReservationId()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2633,7 +2637,8 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
BladeUser user = AuthUtil.getUser(); |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)) { |
|
|
|
|
throw new CustomerException(403, "仓库信息不能为空"); |
|
|
|
|
return R.fail(403,"仓库信息不能为空"); |
|
|
|
|
// throw new CustomerException(403, "仓库信息不能为/**/空");
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ------------------------------------2023-09-08 一键签收调整------------------------------------------
|
|
|
|
|