Browse Source

学生端返回值fix

haonan 1 year ago
parent
commit
c7f1933f9b

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/UserTenantAlbumRecordServiceImpl.java

@@ -223,7 +223,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu
             Long id = sysUser.getId();
             List<Student> list = studentService.lambdaQuery().eq(Student::getUserId, id).list();
             if (CollectionUtils.isEmpty(list)) {
-                throw new BizException("学生未绑定");
+                throw new BizException("学生账号未找到");
             }
             Student student = list.get(0);
             //获取机构Id
@@ -232,7 +232,7 @@ public class UserTenantAlbumRecordServiceImpl extends ServiceImpl<UserTenantAlbu
             List<TenantAlbumMusic> tenantAlbumMusicList = tenantAlbumMusicService.lambdaQuery().eq(TenantAlbumMusic::getTenantId, tenantId)
                     .eq(TenantAlbumMusic::getDelFlag,false).list();
             if (CollectionUtils.isEmpty(tenantAlbumMusicList)) {
-                throw new BizException("机构未绑定对应专辑");
+                return null;
             }
             TenantAlbumMusic tenantAlbumMusic = tenantAlbumMusicList.get(0);
              tenantAlbumId = tenantAlbumMusic.getTenantAlbumId();