From 1385f0bbcb907a69ef66847ae640767ddadfe44e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 22 Sep 2022 15:01:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(enduser):=E4=BF=AE=E6=AD=A3=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=94=B5=E8=B4=B9=E7=BB=9F=E8=AE=A1=E4=B8=AD=E5=A4=B1?= =?UTF-8?q?=E8=AF=AF=E8=AE=A1=E5=85=A5=E6=9C=AA=E5=8F=91=E5=B8=83=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/end_user.go | 1 + 1 file changed, 1 insertion(+) diff --git a/service/end_user.go b/service/end_user.go index 5a15db1..b18fc0d 100644 --- a/service/end_user.go +++ b/service/end_user.go @@ -420,6 +420,7 @@ func (es _EndUserService) StatEndUserRecordInPeriod(requestUser, requestPark, st ColumnExpr("sum(?) as valley", bun.Ident("eud.valley")). ColumnExpr("sum(?) as valley_fee", bun.Ident("eud.valley_fee")). ColumnExpr("sum(?) as final_diluted", bun.Ident("eud.final_diluted")). + Where("report.published = ?", true). Group("eud.meter_04kv_id"). Scan(ctx, &endUserSums) if err != nil {