fix:修改了聚合查询
This commit is contained in:
parent
d133eedd06
commit
41a2041374
@ -80,8 +80,7 @@ func (dao *SensorDAO) GetAggregatedData(start, end time.Time, interval string) (
|
|||||||
query,
|
query,
|
||||||
intervalMinutes, intervalMinutes, // 时间桶计算参数
|
intervalMinutes, intervalMinutes, // 时间桶计算参数
|
||||||
start, end, // 时间范围
|
start, end, // 时间范围
|
||||||
intervalMinutes // GROUP BY参数
|
intervalMinutes)
|
||||||
)
|
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Logger.Printf("查询聚合数据失败: %v (间隔=%s, 开始=%s, 结束=%s)",
|
logger.Logger.Printf("查询聚合数据失败: %v (间隔=%s, 开始=%s, 结束=%s)",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user