Commit 63f3d46e authored by linruibiao's avatar linruibiao

整改接口

parents c534da6b a0c723fd
......@@ -3,7 +3,13 @@ package com.syc.slm.slmbi.service;
import com.syc.slm.slmbi.vo.DeptVo;
import java.util.List;
/**
* slm-bi
* 变量
*
* @author : lin
* @date : 2021-03-25 16:17
**/
public interface DeptService {
/**
* 获取部门列表
......
......@@ -32,6 +32,7 @@ import java.util.concurrent.TimeUnit;
@Component
public class InfluxService {
private static final String PORT ="8635";
@Autowired
private InfluxdbConfig influxdbConfig;
......@@ -40,7 +41,7 @@ public class InfluxService {
@PostConstruct
private void init() {
if ("8635".equals(influxdbConfig.port)) {
if (PORT.equals(influxdbConfig.port)) {
// 华为云: https + getBuilder
influxdb = InfluxDBFactory.connect(String.format("https://%s:%s", influxdbConfig.host, influxdbConfig.port),
influxdbConfig.username,
......
......@@ -36,7 +36,17 @@ public interface VariableService {
*/
List<VariableDeviceVo> getVariableDeviceList();
/**
* 获取实时数据
* @param variableDTO
* @return
*/
Map<String, List<Map<String, RealTimeVariableVo>>> getVariableRealTimeDataList(RealTimeVariableDTO variableDTO);
/**
* 获取历史数据
* @param variableDTO
* @return
*/
Map<String, List<Map<String, HistoryVariableVo>>> getVariableHistoryDataList(HistoryVariableDTO variableDTO);
}
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