mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	【BUG】解决运费计算错误的问题
This commit is contained in:
		@@ -123,10 +123,11 @@ public class TradeDeliveryPriceCalculator implements TradePriceCalculator {
 | 
			
		||||
    private boolean isGlobalExpressFree(TradePriceCalculateRespBO result) {
 | 
			
		||||
 | 
			
		||||
        TradeConfigDO config = tradeConfigService.getTradeConfig();
 | 
			
		||||
        return config == null
 | 
			
		||||
                || Boolean.TRUE.equals(config.getDeliveryExpressFreeEnabled()) // 开启包邮
 | 
			
		||||
                || result.getFreeDelivery() //满减包邮
 | 
			
		||||
                || result.getPrice().getPayPrice() >= config.getDeliveryExpressFreePrice(); // 满足包邮的价格
 | 
			
		||||
        return  result.getFreeDelivery() ||
 | 
			
		||||
                (config != null
 | 
			
		||||
                && Boolean.TRUE.equals(config.getDeliveryExpressFreeEnabled()) // 开启包邮
 | 
			
		||||
                && result.getPrice().getPayPrice() >= config.getDeliveryExpressFreePrice()
 | 
			
		||||
                ); // 满足包邮的价格
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void calculateDeliveryPrice(List<OrderItem> selectedSkus,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user