Commit b2a7773b authored by co_dengxiongwen's avatar co_dengxiongwen

资源点树接口调整

parent 855769e1
...@@ -421,8 +421,8 @@ public class LiResourceController extends AbstractController { ...@@ -421,8 +421,8 @@ public class LiResourceController extends AbstractController {
} }
private List<Map<String, Object>> getAllTreeList(LiResourceModel model) { private List<Map<String, Object>> getAllTreeList(LiResourceModel model) {
List<Map<String, Object>> tree = new ArrayList<>(); // List<Map<String, Object>> tree = new ArrayList<>();
Map<String, Object> root = new HashMap<>(5); // Map<String, Object> root = new HashMap<>(5);
// root.put("name", "资源点列表"); // root.put("name", "资源点列表");
// root.put("id", "0"); // root.put("id", "0");
// root.put("level", 1); // root.put("level", 1);
...@@ -500,9 +500,9 @@ public class LiResourceController extends AbstractController { ...@@ -500,9 +500,9 @@ public class LiResourceController extends AbstractController {
childrenRoot.add(mapStation); childrenRoot.add(mapStation);
}); });
root.put("children", childrenRoot); // root.put("children", childrenRoot);
tree.add(root); // tree.add(root);
return tree; return childrenRoot;
} }
private List<Map<String, Object>> getStationTreeList(LiResourceModel model) { private List<Map<String, Object>> getStationTreeList(LiResourceModel model) {
......
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