|
|
|
@ -10,6 +10,8 @@ import com.hnac.hzinfo.sdk.v5.model.ModelClient;
|
|
|
|
|
import com.hnac.hzinfo.sdk.v5.model.vo.ModelAttrVO; |
|
|
|
|
import com.hnac.hzinfo.sdk.v5.model.vo.ModelEventVO; |
|
|
|
|
import com.hnac.hzinfo.sdk.v5.model.vo.ModelFuncVO; |
|
|
|
|
import com.hnac.hzinfo.sdk.v5.scada.ScadaClient; |
|
|
|
|
import com.hnac.hzinfo.sdk.v5.scada.vo.CanvasInfo; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
@ -29,6 +31,7 @@ import java.util.stream.Collectors;
|
|
|
|
|
public class VectorDataServiceImpl implements VectorDataService { |
|
|
|
|
private final ModelClient modelClient; |
|
|
|
|
private final DeviceClient deviceClient; |
|
|
|
|
private final ScadaClient scadaClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -84,12 +87,11 @@ public class VectorDataServiceImpl implements VectorDataService {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<DeviceFuncInfoDTO> getDeviceFunc() { |
|
|
|
|
List<DeviceFuncInfoDTO> list = deviceClient.listDeviceFunc().getData(); |
|
|
|
|
if (null != list && !list.isEmpty()) { |
|
|
|
|
list.forEach(item -> { |
|
|
|
|
item.setItemName(item.getProjectName() + " " + item.getDeviceName() + " " + item.getName()); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
return list; |
|
|
|
|
return deviceClient.listDeviceFunc().getData(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public List<CanvasInfo> getScadaCanvas() { |
|
|
|
|
return scadaClient.listCanvas().getData(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|