From 5f405296835f46f45539ae70b8b49999118640b3 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 19 Sep 2022 14:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=80=E5=A4=84=E5=B8=A6?= =?UTF-8?q?=E5=AE=BD=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/db/models/server_bandwidth_stat_dao.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/db/models/server_bandwidth_stat_dao.go b/internal/db/models/server_bandwidth_stat_dao.go index 591ed511..937e80a9 100644 --- a/internal/db/models/server_bandwidth_stat_dao.go +++ b/internal/db/models/server_bandwidth_stat_dao.go @@ -208,6 +208,7 @@ func (this *ServerBandwidthStatDAO) FindDailyBandwidthStats(tx *dbs.Tx, serverId func (this *ServerBandwidthStatDAO) FindMonthlyPeekBandwidthBytes(tx *dbs.Tx, serverId int64, month string) (int64, error) { return this.Query(tx). Table(this.partialTable(serverId)). + Attr("serverId", serverId). Between("day", month+"01", month+"31"). Result("MAX(bytes)"). FindInt64Col(0)