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
fd593700
Commit
fd593700
authored
Oct 18, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.配件制造图默认不显示问题修复
parent
be1b826f
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 @
fd593700
...
@@ -338,17 +338,17 @@ public class ServiceHGWD001D extends TreeService {
...
@@ -338,17 +338,17 @@ public class ServiceHGWD001D extends TreeService {
return
;
return
;
}
}
List
<
String
>
labels
=
ObjectUtils
.
listKey
(
nodes
,
"label"
);
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
)
{
if
(
isType
)
{
resultMap
=
HGWDTools
.
HgWd001
.
countBySource
(
labels
);
node
.
put
(
"leaf"
,
0
);
}
else
{
}
else
{
resultMap
=
HGWDTools
.
HgWd001
.
countByParent
(
labels
);
String
label
=
MapUtils
.
getString
(
node
,
"label"
);
}
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
label
);
for
(
Map
node
:
nodes
)
{
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
node
.
get
(
"label"
));
node
.
put
(
"leaf"
,
cnt
==
null
||
cnt
==
0
?
1
:
0
);
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