Browse Source

去掉曲目分类

zouxuan 7 months ago
parent
commit
d941909c1c

+ 3 - 0
mec-application/src/main/java/com/ym/mec/web/controller/SysMusicScoreCategoriesController.java

@@ -90,6 +90,9 @@ public class SysMusicScoreCategoriesController extends BaseController {
         }else if ("TENANT".equals(queryType)) {
             SysUser user = sysUserService.getUser();
             TenantConfig tenantConfig = tenantConfigService.getOne(new QueryWrapper<TenantConfig>().eq("tenant_id_", user.getTenantId()));
+            if(tenantConfig == null){
+                return succeed(cbsMusicScoreCategoriesService.queryTreeByAppId());
+            }
             return succeed(cbsMusicScoreCategoriesService.queryCategoriesTreeList(tenantConfig.getTeachingMaterialId(),false));
         }
         SysUser user = sysUserService.getUser();