Commit c536afc5 authored by chenzhao's avatar chenzhao

修改代码

parent 243de086
......@@ -196,6 +196,11 @@ public class MonitorFanIndicatorImpl implements IMonitorFanIndicator {
sql = String.format("SELECT equipmentIndexName, value, frontModule, unit FROM \"indicators_%s\" WHERE equipmentNumber = '%s' and frontModule =~/%s/", stationBasic.getFanGatewayId(), equipNum, frontModule);
}
List<IndexDto> influxDBList = influxDButils.getListData(sql, IndexDto.class);
influxDBList.stream().forEach(e->{
Double f = Double.valueOf(e.getValue());
e.setValue(String.format("%2f",f));
});
List<IndexDto> collect = influxDBList.stream()
.skip((long) (current - 1) * size)
.limit(size)
......
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