소스 검색

门店供应链物品管理/记录

zhangkaikai 2 년 전
부모
커밋
7840405152
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      mp-admin/src/main/java/com/qs/mp/web/controller/api/admin/ChannelGoodsSettleMgrController.java

+ 1 - 1
mp-admin/src/main/java/com/qs/mp/web/controller/api/admin/ChannelGoodsSettleMgrController.java

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