Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanmw
tagManager
Commits
cfb8c8c0
Commit
cfb8c8c0
authored
Jan 15, 2020
by
zhangkb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维度树节点添加tagType和dimensionType值返回
parent
c54e3f6e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
TagService.java
...ain/java/com/keymobile/tagmanager/service/TagService.java
+2
-1
JsonTreeHelper.java
...in/java/com/keymobile/tagmanager/util/JsonTreeHelper.java
+11
-0
No files found.
src/main/java/com/keymobile/tagmanager/service/TagService.java
View file @
cfb8c8c0
...
...
@@ -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
);
});
//自定拼接成树结构
...
...
src/main/java/com/keymobile/tagmanager/util/JsonTreeHelper.java
View file @
cfb8c8c0
...
...
@@ -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
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment