|  | @@ -5,11 +5,12 @@ import com.hcloud.microserver.commoncore.base.ResultVO;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.commoncore.enums.ResultEnum;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.commoncore.exception.GlobalException;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.commoncore.util.string.StringUtils;
 | 
	
		
			
				|  |  | -import com.hcloud.microserver.h5.common.BaseInfoDO;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.h5.common.CarbonBaseController;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.h5.facade.carbon.forms.CustomerCarbonValRankForm;
 | 
	
		
			
				|  |  | +import com.hcloud.microserver.h5.facade.carbon.forms.CustomerInfoForm;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.h5.facade.carbon.vo.CustomerCarbonValRankVO;
 | 
	
		
			
				|  |  |  import com.hcloud.microserver.h5.service.CustomerCarbonValService;
 | 
	
		
			
				|  |  | +import com.hcloud.microserver.h5.service.CustomerService;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.*;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.PostMapping;
 | 
	
	
		
			
				|  | @@ -26,6 +27,8 @@ public class CustomerCarbonValController extends CarbonBaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private CustomerCarbonValService customerCarbonValService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private CustomerService customerService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @ApiOperation(value = "排行榜",notes = "排行榜")
 | 
	
		
			
				|  |  |      @ApiImplicitParams({
 | 
	
	
		
			
				|  | @@ -38,15 +41,15 @@ public class CustomerCarbonValController extends CarbonBaseController {
 | 
	
		
			
				|  |  |              throw new GlobalException(ResultEnum.FAILURE.getCode(),"查询排行类型错误!");
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        BaseInfoDO baseInfoDO = this.initiSaveObject();
 | 
	
		
			
				|  |  | -        if (baseInfoDO == null) {
 | 
	
		
			
				|  |  | +        CustomerInfoForm customerInfo = customerService.getCurrentMember();
 | 
	
		
			
				|  |  | +        if (customerInfo == null) {
 | 
	
		
			
				|  |  |              return responseError(new ResultVO(ResultEnum.TOKEN_EXPIRED));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if (StringUtils.isEmpty(form.getCustomerId())){
 | 
	
		
			
				|  |  | -            form.setCustomerId(baseInfoDO.getCustomerId());
 | 
	
		
			
				|  |  | +            form.setCustomerId(customerInfo.getGuid());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if (form.getCustomerType() == null){
 | 
	
		
			
				|  |  | -            form.setCustomerType(baseInfoDO.getCustomerType());
 | 
	
		
			
				|  |  | +            form.setCustomerType(customerInfo.getCustomerType());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          CustomerCarbonValRankVO vo = customerCarbonValService.getCustomerCarbonValRankList(form);
 | 
	
		
			
				|  |  |          return responseResultSuccess(vo);
 |