Commit fd0b993e authored by 梁光意's avatar 梁光意

修改获取不到仪表盘树bug

parent 65fcce82
......@@ -220,14 +220,12 @@ public class InstrumentPanelTreeServiceImpl extends ServiceImpl<InstrumentPanelT
.collect(Collectors.toSet());
Set<String> finalPanelIds = Sets.newHashSet();
finalPanelArrays.forEach(x -> {
if (x.length >= 3) {
for (int i = 0; i < x.length; i++) {
if (i == 3) {
break;
}
finalPanelIds.add(x[i]);
}
}
});
// 如果当前没有发布的仪表盘,仪表树就需要显示了
if(CollectionUtils.isEmpty(finalPanelIds)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment