Commit 40b6e5a3bbb2ebc4075e26bd11343848c76bb93a

Authored by puhui999
1 parent 81124292

【缺陷修复】商城:检查是否包邮

yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/service/price/calculator/TradeDeliveryPriceCalculator.java
@@ -213,7 +213,7 @@ public class TradeDeliveryPriceCalculator implements TradePriceCalculator { @@ -213,7 +213,7 @@ public class TradeDeliveryPriceCalculator implements TradePriceCalculator {
213 } 213 }
214 double totalChargeValue = getTotalChargeValue(orderItems, chargeMode); 214 double totalChargeValue = getTotalChargeValue(orderItems, chargeMode);
215 double totalPrice = TradePriceCalculatorHelper.calculateTotalPayPrice(orderItems); 215 double totalPrice = TradePriceCalculatorHelper.calculateTotalPayPrice(orderItems);
216 - return totalChargeValue >= templateFree.getFreeCount() && totalPrice >= templateFree.getFreePrice(); 216 + return totalChargeValue <= templateFree.getFreeCount() && totalPrice >= templateFree.getFreePrice();
217 } 217 }
218 218
219 private double getTotalChargeValue(List<OrderItem> orderItems, Integer chargeMode) { 219 private double getTotalChargeValue(List<OrderItem> orderItems, Integer chargeMode) {