Ver Fonte

fix:修复初始化数据,修复小程序获取设备数据

tangfudong há 1 ano atrás
pai
commit
49aec5df04

+ 23 - 10
data/init/thingModel.json

@@ -1003,10 +1003,10 @@
         {
         {
           "identifier": "swing_modes",
           "identifier": "swing_modes",
           "dataType": {
           "dataType": {
-            "type": "enum",
+            "type": "bool",
             "specs": {
             "specs": {
-              "off": "关",
-              "on": "开"
+              "0": "关",
+              "1": "开"
             }
             }
           },
           },
           "name": "扫风开关",
           "name": "扫风开关",
@@ -1017,10 +1017,10 @@
           "dataType": {
           "dataType": {
             "type": "enum",
             "type": "enum",
             "specs": {
             "specs": {
-              "heat": "制热",
-              "off": "关闭",
-              "cool": "制冷",
-              "fan_only": "送风"
+              "0": "制热",
+              "1": "关闭",
+              "2": "制冷",
+              "3": "送风"
             }
             }
           },
           },
           "name": "模式",
           "name": "模式",
@@ -1031,13 +1031,26 @@
           "dataType": {
           "dataType": {
             "type": "enum",
             "type": "enum",
             "specs": {
             "specs": {
-              "high": "高",
-              "medium": "中",
-              "low": "低"
+              "0": "高",
+              "1": "中",
+              "2": "低"
             }
             }
           },
           },
           "name": "风模式",
           "name": "风模式",
           "accessMode": "rw"
           "accessMode": "rw"
+        },
+        {
+          "identifier": "presets_modes",
+          "dataType": {
+            "type": "enum",
+            "specs": {
+              "0": "节能",
+              "1": "睡眠",
+              "2": "活动"
+            }
+          },
+          "name": "预设模式",
+          "accessMode": "rw"
         }
         }
       ],
       ],
       "services": [
       "services": [

+ 0 - 5
iot-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/service/DeviceInfoDataImpl.java

@@ -448,11 +448,6 @@ public class DeviceInfoDataImpl implements IDeviceInfoData, IJPACommData<DeviceI
         return new Paging<>(ret.getTotalElements(), MapstructUtils.convert(ret.getContent(), DeviceInfo.class));
         return new Paging<>(ret.getTotalElements(), MapstructUtils.convert(ret.getContent(), DeviceInfo.class));
     }
     }
 
 
-    @Override
-    public List<DeviceInfo> findAllByCondition(DeviceInfo data) {
-        return Collections.emptyList();
-    }
-
     @Override
     @Override
     public DeviceInfo findOneByCondition(DeviceInfo data) {
     public DeviceInfo findOneByCondition(DeviceInfo data) {
         return null;
         return null;