打折券计算方式调整

This commit is contained in:
Chopper 2021-09-01 11:35:32 +08:00
parent 3c9c3c2c17
commit 88109995bb

View File

@ -248,7 +248,7 @@ public class CouponRender implements CartRenderStep {
// 打折金额=商品金额*折扣/10
Double discountCouponPrice = CurrencyUtil.mul(priceDetailDTO.getGoodsPrice(),
CurrencyUtil.div(coupon.getDiscount(), 10, 3));
CurrencyUtil.sub(1, CurrencyUtil.div(coupon.getDiscount(), 10, 3)));
//平台券则写入店铺承担优惠券比例
if (coupon.getIsPlatform()) {