Commit 63bb682c authored by chenzhao's avatar chenzhao

修改代码

parent d08d1ead
......@@ -591,7 +591,7 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
param .append(" and equipmentSpecificName =~/"+split[i]+"/") ;
}
String sql1 = "SELECT DISTINCT value FROM iot_data_"+gatewayId+" WHERE equipmentIndexName = '有功功率'"+param+" and time >='"+time+"'GROUP BY time(2m)";
String sql1 = "SELECT DISTINCT value FROM iot_data_"+gatewayId+" WHERE equipmentIndexName = '有功功率'"+param+" and time >='"+time+"'GROUP BY time(2m)";
List<IndicatorsDto> indicatorsDtoLists = influxDButils.getListDataAll(sql1,IndicatorsDto.class);
LinkedHashMap<String, String> collects = indicatorsDtoLists.stream().collect(Collectors.toMap(IndicatorsDto::getTime, IndicatorsDto::getDistinct,(key1, ky2)-> (String) key1,LinkedHashMap::new));
Collection<String> valuess = collects.values();
......
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