|  | @@ -9,6 +9,7 @@ import cn.hutool.core.util.RandomUtil;
 | 
	
		
			
				|  |  |  import cn.hutool.extra.spring.SpringUtil;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.framework.common.core.KeyValue;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.framework.common.enums.UserTypeEnum;
 | 
	
		
			
				|  |  | +import cn.newfeifan.mall.framework.common.exception.ErrorCode;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.framework.common.util.json.JsonUtils;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.framework.common.util.number.MoneyUtils;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.module.distri.constant.DistriConstants;
 | 
	
	
		
			
				|  | @@ -96,7 +97,6 @@ import java.text.DecimalFormat;
 | 
	
		
			
				|  |  |  import java.time.LocalDateTime;
 | 
	
		
			
				|  |  |  import java.time.format.DateTimeFormatter;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
		
			
				|  |  | -import java.util.concurrent.CompletableFuture;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import static cn.newfeifan.mall.framework.common.exception.util.ServiceExceptionUtil.exception;
 | 
	
	
		
			
				|  | @@ -572,6 +572,11 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
 | 
	
		
			
				|  |  |      @TradeOrderLog(operateType = TradeOrderOperateTypeEnum.MEMBER_CREATE)
 | 
	
		
			
				|  |  |      public TradeOrderDO createOrder(Long userId, AppTradeOrderCreateReqVO createReqVO) {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        if(createReqVO.getPayIntegral() != null && createReqVO.getPayIntegral() < 0){
 | 
	
		
			
				|  |  | +            ErrorCode ERROR = new ErrorCode(1_011_000_013, "抵扣佣金不能小于0");
 | 
	
		
			
				|  |  | +            throw exception(ERROR);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          //校验最大值 start  add by Ben
 | 
	
		
			
				|  |  |          //查询订单提成比例
 | 
	
		
			
				|  |  |          QueryWrapper<OrderPercentageDO> queryWrapper = new QueryWrapper<>();
 | 
	
	
		
			
				|  | @@ -1268,9 +1273,9 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
 | 
	
		
			
				|  |  |          rs.add(newSocialStatus);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 七天获得变为即算即得,后续如果恢复把这里注释即可,并打开平台定时任务得订单结算
 | 
	
		
			
				|  |  | -        CompletableFuture.runAsync(() -> {
 | 
	
		
			
				|  |  | +//        CompletableFuture.runAsync(() -> {
 | 
	
		
			
				|  |  |              calc(TradeOrderDOList, orderPercentageDO, JsonUtils.toJsonString(orderPercentageDO));
 | 
	
		
			
				|  |  | -        });
 | 
	
		
			
				|  |  | +//        });
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return rs;
 | 
	
		
			
				|  |  |      }
 |