Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-bi
Project
Project
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
林锐标
slm-bi
Commits
fd0b993e
Commit
fd0b993e
authored
May 10, 2021
by
梁光意
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改获取不到仪表盘树bug
parent
65fcce82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
InstrumentPanelTreeServiceImpl.java
...lm/slmbi/service/impl/InstrumentPanelTreeServiceImpl.java
+6
-8
No files found.
src/main/java/com/syc/slm/slmbi/service/impl/InstrumentPanelTreeServiceImpl.java
View file @
fd0b993e
...
@@ -220,14 +220,12 @@ public class InstrumentPanelTreeServiceImpl extends ServiceImpl<InstrumentPanelT
...
@@ -220,14 +220,12 @@ public class InstrumentPanelTreeServiceImpl extends ServiceImpl<InstrumentPanelT
.
collect
(
Collectors
.
toSet
());
.
collect
(
Collectors
.
toSet
());
Set
<
String
>
finalPanelIds
=
Sets
.
newHashSet
();
Set
<
String
>
finalPanelIds
=
Sets
.
newHashSet
();
finalPanelArrays
.
forEach
(
x
->
{
finalPanelArrays
.
forEach
(
x
->
{
if
(
x
.
length
>=
3
)
{
for
(
int
i
=
0
;
i
<
x
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
x
.
length
;
i
++)
{
if
(
i
==
3
)
{
if
(
i
==
3
)
{
break
;
break
;
}
}
finalPanelIds
.
add
(
x
[
i
]);
finalPanelIds
.
add
(
x
[
i
]);
}
}
}
});
});
// 如果当前没有发布的仪表盘,仪表树就需要显示了
// 如果当前没有发布的仪表盘,仪表树就需要显示了
if
(
CollectionUtils
.
isEmpty
(
finalPanelIds
)){
if
(
CollectionUtils
.
isEmpty
(
finalPanelIds
)){
...
...
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