Browse Source

去掉曲目分类

zouxuan 7 months ago
parent
commit
c78342ea36

+ 3 - 0
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CbsMusicScoreCategoriesServiceImpl.java

@@ -151,6 +151,9 @@ public class CbsMusicScoreCategoriesServiceImpl implements CbsMusicScoreCategori
 	private void insertSubToParent(List<SysMusicScoreCategories> parentTree, SysMusicScoreCategories targetCategory) {
 		for (SysMusicScoreCategories target : parentTree) {
 			if (targetCategory.getId().intValue() == target.getId()) {
+				if (CollectionUtils.isEmpty(target.getSysMusicScoreCategoriesList())) {
+					return;
+				}
 				insertSubToParent(target.getSysMusicScoreCategoriesList(),targetCategory.getSysMusicScoreCategoriesList().get(0));
 				return;
 			}