Commit cfb8c8c0 by zhangkb

维度树节点添加tagType和dimensionType值返回

parent c54e3f6e
...@@ -133,7 +133,8 @@ public class TagService { ...@@ -133,7 +133,8 @@ public class TagService {
} }
List<JsonNode> nodes = new ArrayList<>(); List<JsonNode> nodes = new ArrayList<>();
tags.forEach(p -> { tags.forEach(p -> {
JsonNode node = new JsonNode(p.getPath(), p.getId(), p.getPath(), p.getIdPath()); JsonNode node = new JsonNode(p.getPath(), p.getId(),
p.getPath(), p.getIdPath(),p.getTagType(),p.getDimensionType());
nodes.add(node); nodes.add(node);
}); });
//自定拼接成树结构 //自定拼接成树结构
......
...@@ -12,6 +12,7 @@ public class JsonTreeHelper { ...@@ -12,6 +12,7 @@ public class JsonTreeHelper {
public String tagType; public String tagType;
public String path; public String path;
public String idPath; public String idPath;
public String dimensionType;
public JsonNode(String text) { public JsonNode(String text) {
this.text = text; this.text = text;
...@@ -30,6 +31,16 @@ public class JsonTreeHelper { ...@@ -30,6 +31,16 @@ public class JsonTreeHelper {
this.idPath = idPath; this.idPath = idPath;
} }
public JsonNode(String text, String nodeId, String path,
String idPath,String tagType,String dimensionType) {
this.text = text;
this.path = path;
this.nodeId = nodeId;
this.idPath = idPath;
this.tagType = tagType;
this.dimensionType = dimensionType;
}
public void addChild(JsonNode child) { public void addChild(JsonNode child) {
if (children == null) { if (children == null) {
children = new JsonNode[] { child }; children = new JsonNode[] { child };
......
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