mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-25 16:35:06 +08:00
【功能优化】优化限时满减的金额数据库保存为分
This commit is contained in:
@ -123,7 +123,7 @@ public class TradeDiscountActivityPriceCalculator implements TradePriceCalculato
|
|||||||
TradePriceCalculateRespBO.OrderItem orderItem) {
|
TradePriceCalculateRespBO.OrderItem orderItem) {
|
||||||
Integer price = orderItem.getPayPrice();
|
Integer price = orderItem.getPayPrice();
|
||||||
if (PromotionDiscountTypeEnum.PRICE.getType().equals(discountProduct.getDiscountType())) { // 减价
|
if (PromotionDiscountTypeEnum.PRICE.getType().equals(discountProduct.getDiscountType())) { // 减价
|
||||||
price -= discountProduct.getDiscountPrice() * 100 * orderItem.getCount();
|
price -= discountProduct.getDiscountPrice() * orderItem.getCount();
|
||||||
} else if (PromotionDiscountTypeEnum.PERCENT.getType().equals(discountProduct.getDiscountType())) { // 打折
|
} else if (PromotionDiscountTypeEnum.PERCENT.getType().equals(discountProduct.getDiscountType())) { // 打折
|
||||||
price = price * discountProduct.getDiscountPercent() / 100;
|
price = price * discountProduct.getDiscountPercent() / 100;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user