Merge branch 'zjw'
This commit is contained in:
commit
2a8bff7478
@ -305,9 +305,9 @@ public class DataQueryService implements IDataQueryService {
|
|||||||
}
|
}
|
||||||
resMap.put(realCn, list.stream().map(map -> {
|
resMap.put(realCn, list.stream().map(map -> {
|
||||||
Double data = (Double) map.get(cn);
|
Double data = (Double) map.get(cn);
|
||||||
if ("gateway_temp_data".equals(tableName)) {//温度处理
|
// if ("gateway_temp_data".equals(tableName)) {//温度处理
|
||||||
return data / 10.0;
|
// return data / 10.0;
|
||||||
}
|
// }
|
||||||
if ("work_time".equals(columnName) || "power_time".equals(columnName)) {//时间转小时
|
if ("work_time".equals(columnName) || "power_time".equals(columnName)) {//时间转小时
|
||||||
return data / 60.0;
|
return data / 60.0;
|
||||||
}
|
}
|
||||||
@ -456,7 +456,7 @@ public class DataQueryService implements IDataQueryService {
|
|||||||
}
|
}
|
||||||
sql.append(" time <= '").append(endTime).append("'");
|
sql.append(" time <= '").append(endTime).append("'");
|
||||||
}
|
}
|
||||||
sql.append(" group by time(").append(interval).append(") fill(none)");
|
sql.append(" group by time(").append(interval).append(") fill(0)");
|
||||||
return influxDBService.queryResultProcess(influxDBService.query(sql.toString()));
|
return influxDBService.queryResultProcess(influxDBService.query(sql.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-empty
|
<el-empty
|
||||||
v-if="!this.selectCardNames || this.selectCardNames.length == 0"
|
v-if="!this.selectCardNames || this.selectCardNames.length == 0"
|
||||||
description="暂无数据,请先选择参数来查看监控数据"
|
description="暂无数据,请先选择参数来查看监测数据"
|
||||||
></el-empty>
|
></el-empty>
|
||||||
<div class="chart-1">
|
<div class="chart-1">
|
||||||
<el-card
|
<el-card
|
||||||
|
Loading…
Reference in New Issue
Block a user