Browse Source

add:画布添加站点名称

zhongwei
luyie 2 months ago
parent
commit
39173704c9
  1. 3
      hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java

3
hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/service/impl/VectorDataServiceImpl.java

@ -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()) {

Loading…
Cancel
Save