|
@@ -52,6 +52,13 @@ public class IotDeviceDataModel extends SuperModel {
|
|
|
@Schema(description = "对应的值")
|
|
@Schema(description = "对应的值")
|
|
|
private Object value;
|
|
private Object value;
|
|
|
|
|
|
|
|
|
|
+ public Object getValue() {
|
|
|
|
|
+ if (value == null) {
|
|
|
|
|
+ return "";
|
|
|
|
|
+ }
|
|
|
|
|
+ return value;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@Schema(description = "数据类型,如:当前数据,历史数据")
|
|
@Schema(description = "数据类型,如:当前数据,历史数据")
|
|
|
private IotDeviceDataType dataType = IotDeviceDataType.Current;
|
|
private IotDeviceDataType dataType = IotDeviceDataType.Current;
|
|
|
|
|
|