From 13368eace97d4b0ecfbe8f95749902eed1dab4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Fri, 2 Sep 2022 19:56:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(enduser):=E4=BF=AE=E6=AD=A3=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF=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 34bc83a..b417d67 100644 --- a/service/end_user.go +++ b/service/end_user.go @@ -298,7 +298,7 @@ func (es _EndUserService) BatchImportPVRegister(reportId string, file io.Reader) if appears, has := lo.Find(meterAppers, func(m MeterAppears) bool { return m.Meter == elem.MeterId }); has { - if appears.Appears > 1 { + if appears.Appears <= 1 { elem.LastPeriodOverall = im.LastPeriodOverall elem.LastPeriodCritical = im.LastPeriodCritical.Decimal elem.LastPeriodPeak = im.LastPeriodPeak.Decimal