Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
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
platform
hg-smart
Commits
b0db18f0
Commit
b0db18f0
authored
Oct 18, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://129.211.46.84:8800/platform/hg-smart
into master-dc
parents
65b100ce
a2e9eb71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ServiceHGWD001D.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
+6
-6
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
View file @
b0db18f0
...
...
@@ -349,17 +349,17 @@ public class ServiceHGWD001D extends TreeService {
return
;
}
List
<
String
>
labels
=
ObjectUtils
.
listKey
(
nodes
,
"label"
);
Map
<
String
,
Integer
>
resultMap
=
null
;
Map
<
String
,
Integer
>
resultMap
=
HGWDTools
.
HgWd001
.
countByParent
(
labels
);
for
(
Map
node
:
nodes
)
{
if
(
isType
)
{
resultMap
=
HGWDTools
.
HgWd001
.
countBySource
(
labels
);
node
.
put
(
"leaf"
,
0
);
}
else
{
resultMap
=
HGWDTools
.
HgWd001
.
countByParent
(
labels
);
}
for
(
Map
node
:
nodes
)
{
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
node
.
get
(
"label"
));
String
label
=
MapUtils
.
getString
(
node
,
"label"
);
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
label
);
node
.
put
(
"leaf"
,
cnt
==
null
||
cnt
==
0
?
1
:
0
);
}
}
}
/**
* 构建叶子节点
...
...
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