mirror of
https://github.com/YunaiV/ruoyi-vue-pro.git
synced 2025-10-30 01:57:37 +08:00
【缺陷修复】商城:检查是否包邮
This commit is contained in:
@ -213,7 +213,7 @@ public class TradeDeliveryPriceCalculator implements TradePriceCalculator {
|
|||||||
}
|
}
|
||||||
double totalChargeValue = getTotalChargeValue(orderItems, chargeMode);
|
double totalChargeValue = getTotalChargeValue(orderItems, chargeMode);
|
||||||
double totalPrice = TradePriceCalculatorHelper.calculateTotalPayPrice(orderItems);
|
double totalPrice = TradePriceCalculatorHelper.calculateTotalPayPrice(orderItems);
|
||||||
return totalChargeValue >= templateFree.getFreeCount() && totalPrice >= templateFree.getFreePrice();
|
return totalChargeValue <= templateFree.getFreeCount() && totalPrice >= templateFree.getFreePrice();
|
||||||
}
|
}
|
||||||
|
|
||||||
private double getTotalChargeValue(List<OrderItem> orderItems, Integer chargeMode) {
|
private double getTotalChargeValue(List<OrderItem> orderItems, Integer chargeMode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user