|
@@ -243,9 +243,8 @@ public class QueryInfluxdbDataServiceImpl extends AbstractCrudService<QueryInflu
|
|
public List<Map<String, Object>> getAllDeviceRealTime(){
|
|
public List<Map<String, Object>> getAllDeviceRealTime(){
|
|
// 构建查询语句,获取所有 measurement 的最新数据
|
|
// 构建查询语句,获取所有 measurement 的最新数据
|
|
String queryStr = "SELECT * FROM /.*/ ORDER BY time DESC LIMIT 1";
|
|
String queryStr = "SELECT * FROM /.*/ ORDER BY time DESC LIMIT 1";
|
|
- List<Map<String, Object>> result = tsdbUtils.fetchRealTimeRecords(queryStr);
|
|
|
|
|
|
|
|
- return result;
|
|
|
|
|
|
+ return tsdbUtils.fetchRealTimeRecords(queryStr);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|