|  | @@ -10,8 +10,10 @@ import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.auth.api.entity.SysUser;
 |  |  import com.yonge.cooleshow.auth.api.entity.SysUser;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.biz.dal.entity.TenantAlbumPurchase;
 |  |  import com.yonge.cooleshow.biz.dal.entity.TenantAlbumPurchase;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.biz.dal.entity.TenantInfo;
 |  |  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.TenantAlbumPurchaseService;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.biz.dal.service.TenantInfoService;
 |  |  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.biz.dal.wrapper.TenantAlbumPurchaseWrapper;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.common.controller.BaseController;
 |  |  import com.yonge.cooleshow.common.controller.BaseController;
 | 
											
												
													
														|  |  import com.yonge.cooleshow.common.entity.HttpResponseResult;
 |  |  import com.yonge.cooleshow.common.entity.HttpResponseResult;
 | 
											
										
											
												
													
														|  | @@ -48,6 +50,8 @@ public class TenantAlbumPurchaseController extends BaseController {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Autowired
 |  |      @Autowired
 | 
											
												
													
														|  |      private TenantInfoService tenantInfoService;
 |  |      private TenantInfoService tenantInfoService;
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private TenantStaffService tenantStaffService;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @ApiOperation(value = "详情", notes = "机构专辑采购-根据详情ID查询单条, 传入id")
 |  |      @ApiOperation(value = "详情", notes = "机构专辑采购-根据详情ID查询单条, 传入id")
 | 
											
												
													
														|  |      @ApiImplicitParams({
 |  |      @ApiImplicitParams({
 | 
											
										
											
												
													
														|  | @@ -108,7 +112,11 @@ public class TenantAlbumPurchaseController extends BaseController {
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      private TenantInfo getTenantInfo() {
 |  |      private TenantInfo getTenantInfo() {
 | 
											
												
													
														|  |          SysUser sysUser = sysUserFeignService.queryUserInfo();
 |  |          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();
 |  |                  .last("limit 1").one();
 | 
											
												
													
														|  |          if (tenantInfo == null) {
 |  |          if (tenantInfo == null) {
 | 
											
												
													
														|  |              throw new BizException("非法请求");
 |  |              throw new BizException("非法请求");
 |