|
|
@ -7992,11 +7992,9 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
case 3: |
|
|
|
case 3: |
|
|
|
//库存品
|
|
|
|
//库存品
|
|
|
|
List<DistributionAppStockListVO> distributionAppStockListVOS = handleAppDeliveryInventory(distributionAppDeliveryListDTO, myCurrentWarehouse); |
|
|
|
List<DistributionAppStockListVO> distributionAppStockListVOS = handleAppDeliveryInventory(distributionAppDeliveryListDTO, myCurrentWarehouse); |
|
|
|
|
|
|
|
detailVO.setDistributionAppStockListVOS(distributionAppStockListVOS); |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return R.data(detailVO); |
|
|
|
return R.data(detailVO); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -8016,18 +8014,21 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
DistributionAppStockListVO distributionAppStockListVO = new DistributionAppStockListVO(); |
|
|
|
DistributionAppStockListVO distributionAppStockListVO = new DistributionAppStockListVO(); |
|
|
|
distributionAppStockListVO.setGoodsName(entityList.get(0).getDescriptionGoods()); |
|
|
|
distributionAppStockListVO.setGoodsName(entityList.get(0).getDescriptionGoods()); |
|
|
|
distributionAppStockListVO.setCargoNumber(entityList.get(0).getCargoNumber()); |
|
|
|
distributionAppStockListVO.setCargoNumber(entityList.get(0).getCargoNumber()); |
|
|
|
// inventoryPackageMap.get()
|
|
|
|
List<Long> inventoryIds = entityList.stream().map(DistributionStockListEntity::getId).collect(Collectors.toList()); |
|
|
|
// distributionAppStockListVO.setPlanNum();
|
|
|
|
Integer planNum = 0; |
|
|
|
|
|
|
|
Integer scanNum = 0; |
|
|
|
|
|
|
|
for (Long inventoryId : inventoryPackageMap.keySet()) { |
|
|
|
|
|
|
|
if (inventoryIds.contains(inventoryId)){ |
|
|
|
|
|
|
|
List<DisStockListDetailEntity> entityList1 = inventoryPackageMap.get(inventoryId); |
|
|
|
|
|
|
|
planNum += entityList1.stream().mapToInt(DisStockListDetailEntity::getNum).sum(); |
|
|
|
|
|
|
|
scanNum += entityList1.stream().filter(f->InventoryLoadingStatusConstant.yizhuangche.getValue().equals(f.getStockLockingStatus())).mapToInt(DisStockListDetailEntity::getNum).sum(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
distributionAppStockListVO.setPlanNum(planNum); |
|
|
|
|
|
|
|
distributionAppStockListVO.setScanNum(scanNum); |
|
|
|
|
|
|
|
distributionAppStockListVOS.add(distributionAppStockListVO); |
|
|
|
} |
|
|
|
} |
|
|
|
map.forEach((k,v)->{ |
|
|
|
|
|
|
|
DistributionAppStockListVO distributionAppStockListVO = new DistributionAppStockListVO(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return distributionAppStockListVOS; |
|
|
|
return distributionAppStockListVOS; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|