Commit cfb8c8c0 by zhangkb

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

parent c54e3f6e
......@@ -133,7 +133,8 @@ public class TagService {
}
List<JsonNode> nodes = new ArrayList<>();
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);
});
//自定拼接成树结构
......
......@@ -12,6 +12,7 @@ public class JsonTreeHelper {
public String tagType;
public String path;
public String idPath;
public String dimensionType;
public JsonNode(String text) {
this.text = text;
......@@ -30,6 +31,16 @@ public class JsonTreeHelper {
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) {
if (children == null) {
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