|
@@ -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;
|
|
|
}
|