出库单增加计划出库分配拣货复合数量

This commit is contained in:
zhou-hongcheng
2026-03-10 14:29:20 +08:00
parent 906c65c164
commit 80353a9699
2 changed files with 14 additions and 1 deletions
@@ -144,7 +144,17 @@ public class StockOutOrderApplicationService {
}
}
}
return stockOutOrderDomainService.queryList(stockOutOrderDO);
List<StockOutOrderPO> stockOutOrderPOS = stockOutOrderDomainService.queryList(stockOutOrderDO);
for (StockOutOrderPO stockOutOrderPO : stockOutOrderPOS) {
StockOutOrderPO stockOutOrderPO1 = stockOutOrderDomainService.getInfoChildren(stockOutOrderPO.getOutOrderId());
List<OutMaterialDetailPO> materialDetailList = stockOutOrderPO1.getMaterialDetailList();
BigDecimal reduce = materialDetailList.stream().map(OutMaterialDetailPO::getOutboundQuantity).reduce(BigDecimal.ZERO, BigDecimal::add);
stockOutOrderPO.setTotalOutboundQuantity(reduce);
stockOutOrderPO.setAllocationQuantity(stockOutOrderPO1.getAllocationQuantity());
stockOutOrderPO.setPickingQuantity(stockOutOrderPO1.getPickingQuantity());
stockOutOrderPO.setCheckQuantity(stockOutOrderPO1.getCheckQuantity());
}
return stockOutOrderPOS;
}
@@ -377,4 +377,7 @@ public class StockOutOrderPO extends BaseVOEntity {
@ApiModelProperty("app上传的图片")
private String pictureApp;
@ApiModelProperty("出库总数量")
private BigDecimal totalOutboundQuantity;
}