From 33fa83b767db1ff865ae556d5851380230ceb137 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 7 May 2025 08:40:54 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=80=E4=B8=AA=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E7=9A=84=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adaptors/安心云es主题特征to广东省平台.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adaptors/安心云es主题特征to广东省平台.go b/adaptors/安心云es主题特征to广东省平台.go index 543629a..69064e6 100644 --- a/adaptors/安心云es主题特征to广东省平台.go +++ b/adaptors/安心云es主题特征to广东省平台.go @@ -13,7 +13,6 @@ import ( "math" "strconv" "strings" - "time" ) // Adaptor_AXYES_HBGL 统一采集软件数据 转换 湘潭健康监测平台 @@ -104,7 +103,7 @@ func (the Adaptor_AXYES_GDJKJC) getMonitorTypeByFactorId(factorId int) protoFile } func (the Adaptor_AXYES_GDJKJC) EsAgg2StatisticData(factorId int, monitorCode string, dateBucket HBJCAS.BucketsXY) (dataBytes []byte) { - Atime := dateBucket.KeyAsString.Add(-8 * time.Hour).UnixMilli() + Atime := dateBucket.KeyAsString.UnixMilli() maxAbsoluteValueX := max(math.Abs(dateBucket.X.Max), math.Abs(dateBucket.X.Min)) avgValueX := dateBucket.X.Avg rootMeanSquareX := math.Sqrt(dateBucket.X.SumOfSquares / float64(dateBucket.X.Count))