Commit cb7634ecb4f14c64bcdf0419a28837c0d5530ee1
1 parent
86b02b69
【功能优化】优化限时满减的金额数据库保存为分
Showing
1 changed file
with
1 additions
and
1 deletions
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,7 +123,7 @@ public class TradeDiscountActivityPriceCalculator implements TradePriceCalculato | ||
| 123 | TradePriceCalculateRespBO.OrderItem orderItem) { | 123 | TradePriceCalculateRespBO.OrderItem orderItem) { |
| 124 | Integer price = orderItem.getPayPrice(); | 124 | Integer price = orderItem.getPayPrice(); |
| 125 | if (PromotionDiscountTypeEnum.PRICE.getType().equals(discountProduct.getDiscountType())) { // 减价 | 125 | if (PromotionDiscountTypeEnum.PRICE.getType().equals(discountProduct.getDiscountType())) { // 减价 |
| 126 | - price -= discountProduct.getDiscountPrice() * 100 * orderItem.getCount(); | 126 | + price -= discountProduct.getDiscountPrice() * orderItem.getCount(); |
| 127 | } else if (PromotionDiscountTypeEnum.PERCENT.getType().equals(discountProduct.getDiscountType())) { // 打折 | 127 | } else if (PromotionDiscountTypeEnum.PERCENT.getType().equals(discountProduct.getDiscountType())) { // 打折 |
| 128 | price = price * discountProduct.getDiscountPercent() / 100; | 128 | price = price * discountProduct.getDiscountPercent() / 100; |
| 129 | } else { | 129 | } else { |