Commit cb7634ecb4f14c64bcdf0419a28837c0d5530ee1

Authored by 痴货
1 parent 86b02b69

【功能优化】优化限时满减的金额数据库保存为分

yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/price/calculator/TradeDiscountActivityPriceCalculator.java
... ... @@ -123,7 +123,7 @@ public class TradeDiscountActivityPriceCalculator implements TradePriceCalculato
123 123 TradePriceCalculateRespBO.OrderItem orderItem) {
124 124 Integer price = orderItem.getPayPrice();
125 125 if (PromotionDiscountTypeEnum.PRICE.getType().equals(discountProduct.getDiscountType())) { // 减价
126   - price -= discountProduct.getDiscountPrice() * 100 * orderItem.getCount();
  126 + price -= discountProduct.getDiscountPrice() * orderItem.getCount();
127 127 } else if (PromotionDiscountTypeEnum.PERCENT.getType().equals(discountProduct.getDiscountType())) { // 打折
128 128 price = price * discountProduct.getDiscountPercent() / 100;
129 129 } else {
... ...