|
@@ -92,7 +92,11 @@ public class ChannelGoodsSettleMgrController extends BaseApiController {
|
|
channelGoodsOrderSettleVO.setTotalRemainQty(channelGoodsList.stream().mapToInt(ChannelGoods::getRemainQty).sum());
|
|
channelGoodsOrderSettleVO.setTotalRemainQty(channelGoodsList.stream().mapToInt(ChannelGoods::getRemainQty).sum());
|
|
channelGoodsOrderSettleVO.setTotalSettleQty(channelGoodsList.stream().mapToInt(ChannelGoods::getSettleQty).sum());
|
|
channelGoodsOrderSettleVO.setTotalSettleQty(channelGoodsList.stream().mapToInt(ChannelGoods::getSettleQty).sum());
|
|
channelGoodsOrderSettleVO.setTotalVerifyQty(channelGoodsList.stream().mapToInt(ChannelGoods::getVerifyQty).sum());
|
|
channelGoodsOrderSettleVO.setTotalVerifyQty(channelGoodsList.stream().mapToInt(ChannelGoods::getVerifyQty).sum());
|
|
- channelGoodsOrderSettleVO.setTotalPurchaseCost(channelGoodsList.stream().mapToInt(ChannelGoods::getPurchaseCost).sum());
|
|
|
|
|
|
+ Integer totalPurchaseCost = 0;
|
|
|
|
+ for (ChannelGoods channelGoods : channelGoodsList) {
|
|
|
|
+ totalPurchaseCost += channelGoods.getPurchaseCost() * channelGoods.getSettleQty();
|
|
|
|
+ }
|
|
|
|
+ channelGoodsOrderSettleVO.setTotalPurchaseCost(totalPurchaseCost);
|
|
channelGoodsOrderSettleVO.setStatus(channelGoodsList.get(0).getStatus());
|
|
channelGoodsOrderSettleVO.setStatus(channelGoodsList.get(0).getStatus());
|
|
}
|
|
}
|
|
}
|
|
}
|