From 6b1df5a9bbbbd69cf85e5601c20cbf92aa4acecd Mon Sep 17 00:00:00 2001 From: jay <75509151@qq.com> Date: Wed, 28 Jun 2023 10:47:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ota=E8=A1=A8=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cc/iotkit/data/model/TbDeviceOtaInfo.java | 6 ++---- .../src/main/java/cc/iotkit/data/model/TbOtaPackage.java | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbDeviceOtaInfo.java b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbDeviceOtaInfo.java index 01d43ca6..20dff2d3 100644 --- a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbDeviceOtaInfo.java +++ b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbDeviceOtaInfo.java @@ -6,10 +6,7 @@ import io.swagger.annotations.ApiModel; import lombok.Data; import org.hibernate.annotations.GenericGenerator; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; /** * @Author: 石恒 @@ -31,6 +28,7 @@ public class TbDeviceOtaInfo { private String taskId; + @Column(name = "[desc]") private String desc; private String version; diff --git a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbOtaPackage.java b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbOtaPackage.java index 447ca781..3b956754 100644 --- a/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbOtaPackage.java +++ b/iot-common/iot-common-dao/iot-data-serviceImpl-rdb/src/main/java/cc/iotkit/data/model/TbOtaPackage.java @@ -5,10 +5,7 @@ import io.github.linpeilie.annotations.AutoMapper; import lombok.Data; import org.hibernate.annotations.GenericGenerator; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import javax.persistence.*; /** * @Author: 石恒 @@ -36,6 +33,7 @@ public class TbOtaPackage { private String name; + @Column(name = "[desc]") private String desc; private String version;