TRX 1 ano atrás
pai
commit
abd210491e

+ 7 - 0
OneCardIotClient/src/main/java/com/zhongshu/iot/client/model/device/IotDeviceDataModel.java

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