diff --git a/web/models/chargetab.go b/web/models/chargetab.go index 88db5a8..f77ce75 100644 --- a/web/models/chargetab.go +++ b/web/models/chargetab.go @@ -2574,12 +2574,12 @@ func (t *Chargetab) PropertyFeeData(startDate string) (datalist CatPropertytabDa Twelve: utils.Decimal(allFell.Twelve/shopAllFell*100, 2), All: utils.Decimal(shopAllMoney/12/shopAllFell*100, 2), }) - if errFell != nil { - errFell.Name = "异常收费" - datalist.ParkStatistics = append(datalist.ParkStatistics, *errFell) - } - } + } + if errFell != nil { + errFell.Name = "异常收费" + datalist.ParkStatistics = append(datalist.ParkStatistics, *errFell) + } return datalist, nil } func loadData(allocatemonth string, fell *PropertyFeeTwo, money float64) {