|
|
|
@ -5646,15 +5646,22 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
List<DistributionRetentionScanVo> retentionScanVos = new ArrayList<>(); |
|
|
|
|
//托盘货物都存在该配送任务的包件列表
|
|
|
|
|
//进行客户划分
|
|
|
|
|
goodsLsit.forEach(g -> { |
|
|
|
|
DistributionRetentionScanVo retentionScanVo = baseMapper.selectRetentionPackage(g.getAssociationValue(), distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
for (WarehouseTrayGoodsEntity warehouseTrayGoodsEntity : goodsLsit) { |
|
|
|
|
DistributionRetentionScanVo retentionScanVo = baseMapper.selectRetentionPackage(warehouseTrayGoodsEntity.getAssociationValue(), distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(retentionScanVo)) { |
|
|
|
|
if (retentionScanVo.getOrderPackageStatus().equals(OrderPackageStatusConstant.yiqianshou.getValue())){ |
|
|
|
|
log.error("滞留扫描出现签收包件>>>>>>>>>>>>>>>:{}",retentionScanVo.getOrderPackageCode()); |
|
|
|
|
return Resp.scanFail(retentionScanVo.getOrderPackageCode()+"已签收", "此包件已签收"); |
|
|
|
|
} |
|
|
|
|
retentionScanVo.setScanType(3); |
|
|
|
|
retentionScanVos.add(retentionScanVo); |
|
|
|
|
} else { |
|
|
|
|
log.error("#############查询托盘包件信息错误,包件码为:{}", g.getAssociationValue()); |
|
|
|
|
log.error("#############查询托盘包件信息错误,包件码为:{}", warehouseTrayGoodsEntity.getAssociationValue()); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(retentionScanVos)) { |
|
|
|
|
trayRetentionVO.setGoodsList(retentionScanVos); |
|
|
|
|
return R.data(trayRetentionVO); |
|
|
|
|