fix(enduser):修正一处逻辑错误。
This commit is contained in:
parent
b162844159
commit
13368eace9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user