|
|
|
@ -96,6 +96,9 @@ public class VectorDataServiceImpl implements VectorDataService {
|
|
|
|
|
@Override |
|
|
|
|
public List<CanvasInfo> getScadaCanvas() { |
|
|
|
|
List<CanvasInfo> list = scadaClient.listCanvas().getData(); |
|
|
|
|
if (null == list || list.isEmpty()) { |
|
|
|
|
return new LinkedList<>(); |
|
|
|
|
} |
|
|
|
|
List<String> projectIds = list.stream().map(CanvasInfo::getProjectId).collect(Collectors.toList()); |
|
|
|
|
List<ProjectNameVo> nameList = projectClient.getProjectNameList(projectIds).getData(); |
|
|
|
|
if (null == nameList || nameList.isEmpty()) { |
|
|
|
|