Commit f6505b1093e3477e39cc74a8c040bd29fe66cd62
1 parent
3d067f6735
Exists in
master
and in
1 other branch
增加配置
Showing 1 changed file with 6 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BasicConfigFacade.java
View file @
f6505b1
... | ... | @@ -101,10 +101,12 @@ |
101 | 101 | public List<TreeNode> findAllBasicConfigWithTree() { |
102 | 102 | List<TreeNode> list = new ArrayList<TreeNode>(); |
103 | 103 | List<BasicConfig> l = basicConfigService.queryParentConfig(); |
104 | - for (BasicConfig b : l) { | |
105 | - TreeNode node = TreeHelper.recursiveTree(b, basicConfigService); | |
106 | - if (null != node) { | |
107 | - list.add(node); | |
104 | + if(CollectionUtils.isNotEmpty(l)){ | |
105 | + for (BasicConfig b : l) { | |
106 | + TreeNode node = TreeHelper.recursiveTree(b, basicConfigService); | |
107 | + if (null != node) { | |
108 | + list.add(node); | |
109 | + } | |
108 | 110 | } |
109 | 111 | } |
110 | 112 | return list; |