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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ServiceHGWD001D.java
...java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
+8
-8
No files found.
src/main/java/com/baosight/hggp/hg/wd/service/ServiceHGWD001D.java
View file @
fd593700
...
@@ -338,15 +338,15 @@ public class ServiceHGWD001D extends TreeService {
...
@@ -338,15 +338,15 @@ 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
);
if
(
isType
)
{
resultMap
=
HGWDTools
.
HgWd001
.
countBySource
(
labels
);
}
else
{
resultMap
=
HGWDTools
.
HgWd001
.
countByParent
(
labels
);
}
for
(
Map
node
:
nodes
)
{
for
(
Map
node
:
nodes
)
{
Integer
cnt
=
resultMap
==
null
?
null
:
resultMap
.
get
(
node
.
get
(
"label"
));
if
(
isType
)
{
node
.
put
(
"leaf"
,
cnt
==
null
||
cnt
==
0
?
1
:
0
);
node
.
put
(
"leaf"
,
0
);
}
else
{
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