Skip to content

Latest commit

 

History

History
31 lines (27 loc) · 949 Bytes

EnergyInterval.md

File metadata and controls

31 lines (27 loc) · 949 Bytes

BEnergyIntervalRecord

extends BValueHistoryRecord
能耗定时记录 不限定类型,可以是电费、气费、水费等各种类型

增加字段

字段名 数据类型 默认值 说明
EndAt BAbsTime BAbsTime.DEFAULT 记录截止时间
meterRead double 0.0d 表读数
cost double 0.0d 记录周期内消耗

to JSON String

key 赋值 说明 取值
t this.getEndAt().getMillis() 记录截止时间(毫秒) long
r this.getMeterRead() 表读数 double
c this.getCost() 记录周期内消耗 double

lexicon

key value
api.json.energy.endAt.mills t
api.json.energy.meterRead r
api.json.energy.cost c
api.json.energy.endAt.mills=t
api.json.energy.meterRead=r
api.json.energy.cost=c