瀏覽代碼

解决目录订阅存储bug

648540858 4 年之前
父節點
當前提交
82f4fef876
共有 2 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java
  2. 二進制
      src/main/resources/wvp.sqlite

+ 3 - 0
src/main/java/com/genersoft/iot/vmp/storager/dao/DeviceMapper.java

@@ -33,6 +33,7 @@ public interface DeviceMapper {
                 "createTime," +
                 "updateTime," +
                 "charset," +
+                "subscribeCycleForCatalog," +
                 "online" +
             ") VALUES (" +
                 "#{deviceId}," +
@@ -51,6 +52,7 @@ public interface DeviceMapper {
                 "#{createTime}," +
                 "#{updateTime}," +
                 "#{charset}," +
+                "#{subscribeCycleForCatalog}," +
                 "#{online}" +
             ")")
     int add(Device device);
@@ -72,6 +74,7 @@ public interface DeviceMapper {
                 "<if test=\"keepaliveTime != null\">, keepaliveTime='${keepaliveTime}'</if>" +
                 "<if test=\"expires != null\">, expires=${expires}</if>" +
                 "<if test=\"charset != null\">, charset='${charset}'</if>" +
+                "<if test=\"subscribeCycleForCatalog != null\">, subscribeCycleForCatalog=#{subscribeCycleForCatalog}</if>" +
                 "WHERE deviceId='${deviceId}'"+
             " </script>"})
     int update(Device device);

二進制
src/main/resources/wvp.sqlite