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