|  | @@ -10,8 +10,10 @@ import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.entity.TenantAlbumPurchase;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.entity.TenantInfo;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.biz.dal.entity.TenantStaff;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.service.TenantAlbumPurchaseService;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.service.TenantInfoService;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.biz.dal.service.TenantStaffService;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.wrapper.TenantAlbumPurchaseWrapper;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.common.controller.BaseController;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.common.entity.HttpResponseResult;
 | 
	
	
		
			
				|  | @@ -47,6 +49,8 @@ public class TenantAlbumPurchaseController extends BaseController {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private TenantInfoService tenantInfoService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private TenantStaffService tenantStaffService;
 | 
	
		
			
				|  |  |      @ApiOperation(value = "详情", notes = "机构专辑采购-根据详情ID查询单条, 传入id")
 | 
	
		
			
				|  |  |      @ApiImplicitParams({
 | 
	
		
			
				|  |  |              @ApiImplicitParam(name = "id", value = "id", dataType = "long")
 | 
	
	
		
			
				|  | @@ -106,7 +110,11 @@ public class TenantAlbumPurchaseController extends BaseController {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private TenantInfo getTenantInfo() {
 | 
	
		
			
				|  |  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | -        TenantInfo tenantInfo = tenantInfoService.lambdaQuery().eq(TenantInfo::getUserId, sysUser.getId())
 | 
	
		
			
				|  |  | +        TenantStaff tenantStaff = tenantStaffService.getByUserId(sysUser.getId());
 | 
	
		
			
				|  |  | +        if (tenantStaff == null) {
 | 
	
		
			
				|  |  | +            throw new BizException("非法请求");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        TenantInfo tenantInfo = tenantInfoService.lambdaQuery().eq(TenantInfo::getId, tenantStaff.getTenantId())
 | 
	
		
			
				|  |  |                  .last("limit 1").one();
 | 
	
		
			
				|  |  |          if (tenantInfo == null) {
 | 
	
		
			
				|  |  |              throw new BizException("非法请求");
 |