Merge branch 'zjw'

This commit is contained in:
zhangjunwen 2024-10-18 11:07:47 +08:00
commit 2a8bff7478
2 changed files with 5 additions and 5 deletions

View File

@ -305,9 +305,9 @@ public class DataQueryService implements IDataQueryService {
}
resMap.put(realCn, list.stream().map(map -> {
Double data = (Double) map.get(cn);
if ("gateway_temp_data".equals(tableName)) {//温度处理
return data / 10.0;
}
// if ("gateway_temp_data".equals(tableName)) {//温度处理
// return data / 10.0;
// }
if ("work_time".equals(columnName) || "power_time".equals(columnName)) {//时间转小时
return data / 60.0;
}
@ -456,7 +456,7 @@ public class DataQueryService implements IDataQueryService {
}
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()));
}

View File

@ -84,7 +84,7 @@
</div>
<el-empty
v-if="!this.selectCardNames || this.selectCardNames.length == 0"
description="暂无数据,请先选择参数来查看监数据"
description="暂无数据,请先选择参数来查看监数据"
></el-empty>
<div class="chart-1">
<el-card