From 502a8bbcee21ff1d38188c598c8d97e8b02f1afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Thu, 22 Sep 2022 16:16:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(enduser):=E4=BF=AE=E6=AD=A3=E5=BD=93?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=94=B5=E8=B4=B9=E4=B9=9F=E6=98=AF=E7=A9=BA?= =?UTF-8?q?=E5=80=BC=E6=97=B6=E5=87=BA=E7=8E=B0=E7=9A=84=E7=A9=BA=E6=8C=87?= =?UTF-8?q?=E9=92=88=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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/end_user.go b/service/end_user.go index 68cb26a..60e71da 100644 --- a/service/end_user.go +++ b/service/end_user.go @@ -455,7 +455,7 @@ func (es _EndUserService) StatEndUserRecordInPeriod(requestUser, requestPark, st elem.IsPublicMeter = archive.IsPublicMeter elem.Kind = archive.ParkDetail.SubmeterType } - if elem.OverallFee.Valid && !elem.OverallFee.Decimal.IsZero() { + if elem.OverallFee.Valid && elem.AdjustFee.Valid && !elem.OverallFee.Decimal.IsZero() { elem.AdjustProportion = decimal.NewNullDecimal( elem.AdjustFee.Decimal.Div(elem.OverallFee.Decimal).RoundBank(8), )