|
|
|
@ -5414,14 +5414,18 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl<Distribution
|
|
|
|
|
if (packageLoadingData.isEmpty() && inventoryLoadingData.isEmpty()) { |
|
|
|
|
return Resp.scanFail("当前客户未进行装车操作", "当前客户未进行装车操作"); |
|
|
|
|
} |
|
|
|
|
log.info(">>>>>>>>>>>>>>>>>>>开始批量装车:{}", distributionSignforEntity.getDeliveryId()); |
|
|
|
|
try { |
|
|
|
|
if (!packageLoadingData.isEmpty()) { |
|
|
|
|
log.info(">>>>>>>>>>>>>>>>>>>开始批量装车,处理装车包件:{}", distributionSignforEntity.getDeliveryId()); |
|
|
|
|
|
|
|
|
|
receivedQuantity += packageLoadingData.stream().mapToInt(DistributionLoadscanEntity::getPackageNub).sum(); |
|
|
|
|
//进行订制品和零担的批量签收
|
|
|
|
|
handlePackageLoadingData(packageLoadingData, user, distributionLoadscanEntityLists, orderCodes); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!inventoryLoadingData.isEmpty()) { |
|
|
|
|
log.info(">>>>>>>>>>>>>>>>>>>开始批量装车,处理装车库存品:{}", distributionSignforEntity.getDeliveryId()); |
|
|
|
|
receivedinQuantity += inventoryLoadingData.stream().mapToInt(DistributionLoadscaninvnEntity::getPackageNub).sum(); |
|
|
|
|
//进行订制品和零担的批量签收
|
|
|
|
|
handleInventoryLoadingData(inventoryLoadingData, user, distributionLoadscaninvnEntityLists); |
|
|
|
|