|
@@ -19,8 +19,8 @@ class Device_info(Model):
|
|
|
type_id = Fields(type='int', comment='设备类型')
|
|
|
value = Fields(type='varchar(1000)', comment='设备传过来的值')
|
|
|
exp = Fields(type='varchar(500)', comment='表达式')
|
|
|
- max = Fields(type='float', comment='最大上限', match='number|最大上限必须是数字')
|
|
|
- min = Fields(type='float', comment='最小下限', match='number|最小下限必须是数字')
|
|
|
+ max = Fields(type='float', comment='最大上限', match='numberFloat|最大上限必须是数字')
|
|
|
+ min = Fields(type='float', comment='最小下限', match='numberFloat|最小下限必须是数字')
|
|
|
cxnum = Fields(type='int', comment='超限次数')
|
|
|
cxtype = Fields(type='int', comment='超限类型,1为超过上限,2为超过下限')
|
|
|
cxdate = Fields(type='int', comment='首次超限时间')
|