Commit c7841f88 by huluobin

update

parent 4377ee2f
...@@ -40,7 +40,10 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat ...@@ -40,7 +40,10 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat
for (MallCategory mallCategory : list) { for (MallCategory mallCategory : list) {
if (mallCategory.getId().equals(subTreeId)) { if (mallCategory.getId().equals(subTreeId)) {
if (ListUtil.isNotEmpty(mallCategory.getChildList())) { if (ListUtil.isNotEmpty(mallCategory.getChildList())) {
return SerializationUtils.clone((new ArrayList<>(mallCategory.getChildList()))); List<MallCategory> clone = SerializationUtils.clone((new ArrayList<>(mallCategory.getChildList())));
if (ListUtil.isNotEmpty(clone)) {
return clone;
}
} }
} else if (ListUtil.isNotEmpty(mallCategory.getChildList())) { } else if (ListUtil.isNotEmpty(mallCategory.getChildList())) {
this.findSubTree(mallCategory.getChildList(), subTreeId); this.findSubTree(mallCategory.getChildList(), subTreeId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment