WIN-B904R0U0NNS\Administrator il y a 2 ans
Parent
commit
4414ced178

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/business/util/FindsBusDictsChildrenUtil.java

@@ -56,7 +56,7 @@ public class FindsBusDictsChildrenUtil {
         List<BusDictTreeModel> treeList = new ArrayList<>();
         for (int i = 0; i < recordList.size(); i++) {
             BusDictTreeModel branch = recordList.get(i);
-            if (oConvertUtils.isEmpty(branch.getParentId())) {
+            if (oConvertUtils.isEmpty(branch.getParentId()) || branch.getParentId().equals("0")) {
                 treeList.add(branch);
                 DictIdModel departIdModel = new DictIdModel().convert(branch);
                 dictIdList.add(departIdModel);