|
@@ -133,6 +133,23 @@ public class SysMusicScoreAccompanimentServiceImpl extends BaseServiceImpl<Integ
|
|
|
|
|
|
queryInfo.setCategoriesIdList(categoriesIdList);
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(queryInfo.getFilterCategoriesIds())){
|
|
|
+ String[] filterCategoriesIds = queryInfo.getFilterCategoriesIds().split(",");
|
|
|
+
|
|
|
+ List<Integer> filterCategoriesIdList = new ArrayList<>();
|
|
|
+
|
|
|
+ for(String fc : filterCategoriesIds){
|
|
|
+ SysMusicScoreCategories sysMusicScoreCategories = sysMusicScoreCategoriesService.get(Integer.parseInt(fc));
|
|
|
+
|
|
|
+ if(sysMusicScoreCategories == null){
|
|
|
+ throw new BizException("分类找不到");
|
|
|
+ }
|
|
|
+ filterCategoriesIdList.add(Integer.parseInt(fc));
|
|
|
+ sysMusicScoreCategories = sysMusicScoreCategoriesService.getChildTree(sysMusicScoreCategories);
|
|
|
+ getAllCategoryIdList(filterCategoriesIdList, sysMusicScoreCategories.getSysMusicScoreCategoriesList());
|
|
|
+ }
|
|
|
+ queryInfo.setFilterCategoriesIds(filterCategoriesIdList.stream().map(String :: valueOf).collect(Collectors.joining(",")));
|
|
|
+ }
|
|
|
return this.queryPage(queryInfo);
|
|
|
}
|
|
|
|