From 4e2176e049248ace7bb82669d9d06318079e7d3b Mon Sep 17 00:00:00 2001 From: Chopper Date: Thu, 19 Aug 2021 18:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E5=B8=83=E4=BC=98=E6=83=A0=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/order/cart/render/util/PromotionPriceUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java b/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java index 984eb0fe..d97c51c6 100644 --- a/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java +++ b/framework/src/main/java/cn/lili/modules/order/cart/render/util/PromotionPriceUtil.java @@ -128,7 +128,7 @@ public class PromotionPriceUtil { //商品金额占比 Double point = CurrencyUtil.div(cartSkuVO.getPriceDetailDTO().getGoodsPrice(), totalPrice, 4); //商品优惠金额 - skuDiscountPrice = CurrencyUtil.mul(totalPrice, point); + skuDiscountPrice = CurrencyUtil.mul(discountPrice, point); //累加已优惠金额 deducted = CurrencyUtil.add(deducted, skuDiscountPrice); } @@ -138,6 +138,7 @@ public class PromotionPriceUtil { } //优惠券金额,则计入优惠券 ,其他则计入总的discount price if (promotionTypeEnum == PromotionTypeEnum.COUPON) { + cartSkuVO.getPriceDetailDTO().setCouponPrice( CurrencyUtil.add(cartSkuVO.getPriceDetailDTO().getCouponPrice(), skuDiscountPrice)); } else {