fix:修改5分钟解析粒度逻辑
This commit is contained in:
parent
526e05199f
commit
e7d70b32e0
@ -69,7 +69,7 @@ func (dao *SensorDAO) GetAggregatedData(start, end time.Time, interval string) (
|
||||
'%Y-%m-%dT%H:%i:00'
|
||||
) AS bucket_time,
|
||||
ROUND(AVG(temperature)/10, 1) AS avg_temp,
|
||||
ROUND((MAX(rainfall) - MIN(rainfall))/10, 1) AS rainfall,
|
||||
ROUND(MAX(rainfall)/10, 1) AS rainfall,
|
||||
ROUND(AVG(humidity)/10, 1) AS avg_humidity,
|
||||
ROUND(AVG(wind_speed)/100, 1) AS avg_wind_speed,
|
||||
ROUND(AVG(atm_pressure)/10, 1) AS avg_atm_pressure,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user