From 9e85e96562215749d092ff30c9c5f96ee1c0c570 Mon Sep 17 00:00:00 2001 From: zhangyuxiang <1323804152@qq.com> Date: Wed, 24 Jun 2026 15:59:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=B3=E5=8C=97=E5=85=AC=E8=B7=AF=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E4=B8=8A=E6=8A=A5=E6=97=B6=E9=97=B4=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E5=8E=9F=E5=85=88=E5=87=8F8?= =?UTF-8?q?=E5=B0=8F=E6=97=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../安心云es主题特征to河北公路设施监测.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adaptors/安心云es主题特征to河北公路设施监测.go b/adaptors/安心云es主题特征to河北公路设施监测.go index a84555a..7052be5 100644 --- a/adaptors/安心云es主题特征to河北公路设施监测.go +++ b/adaptors/安心云es主题特征to河北公路设施监测.go @@ -7,12 +7,12 @@ import ( "goInOut/consumers/HBJCAS/protoFiles_hb" "goInOut/dbOperate" "goInOut/models" - "google.golang.org/protobuf/proto" "log" "math" "strconv" "strings" - "time" + + "google.golang.org/protobuf/proto" ) // Adaptor_AXYES_HBGL 统一采集软件数据 转换 湘潭健康监测平台 @@ -108,7 +108,7 @@ func (the Adaptor_AXYES_HBGL) getMonitorTypeByFactorId(factorId int) protoFiles_ } func (the Adaptor_AXYES_HBGL) EsAgg2StatisticData(factorId int, monitorCode int64, dateBucket HBJCAS.BucketsXY) *protoFiles_hb.DataDefinition_StatisticData { - 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))