|
@@ -1,5 +1,6 @@
|
|
|
package com.yonge.cooleshow.student.controller;
|
|
|
|
|
|
+import com.alibaba.cloud.commons.lang.StringUtils;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.microsvc.toolkit.common.response.paging.QueryInfo;
|
|
|
import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
|
|
@@ -55,10 +56,15 @@ public class TenantAlbumSheetController extends BaseController {
|
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
}
|
|
|
query.setUserId(user.getId());
|
|
|
-
|
|
|
+ if(query.getSubjectId() == null){
|
|
|
Student student = studentService.getById(user.getId());
|
|
|
- query.setSubjectId(student.getSubjectId());
|
|
|
- }*/
|
|
|
+ if (student == null) {
|
|
|
+ throw new BizException("学生信息不存在");
|
|
|
+ }
|
|
|
+ if (!StringUtil.isEmpty(student.getSubjectId())) {
|
|
|
+ query.setSubjectId(Long.parseLong(student.getSubjectId()));
|
|
|
+ }
|
|
|
+ }
|
|
|
return succeed(tenantAlbumMusicService.getTenantAlbumMusicQuery(query));
|
|
|
}
|
|
|
|