fix(enduser):修正一处逻辑错误。

This commit is contained in:
徐涛 2022-09-02 19:56:30 +08:00
parent b162844159
commit 13368eace9

View File

@ -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