forked from free-lancers/electricity_bill_calc_service
fix(report):修复更新指定的核算任务与初始化一个新的核算任务
This commit is contained in:
@@ -3,6 +3,7 @@ package calculate
|
||||
import (
|
||||
"electricity_bill_calc/model"
|
||||
"fmt"
|
||||
"github.com/shopspring/decimal"
|
||||
"sync/atomic"
|
||||
)
|
||||
|
||||
@@ -17,7 +18,7 @@ func CheckMeterArea(report *model.ReportIndex, meters []*model.MeterDetail) (boo
|
||||
|
||||
for _, m := range meters {
|
||||
if (m.MeterType == model.METER_INSTALLATION_TENEMENT || m.MeterType == model.METER_INSTALLATION_POOLING) &&
|
||||
m.Area == nil {
|
||||
m.Area.Decimal == decimal.Zero {
|
||||
atomic.AddInt32(&meterWithoutArea, 1)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user