From 18f8e182d5aff9d9a9e51696556abc597fd8c6d8 Mon Sep 17 00:00:00 2001 From: linwl <304115325@qq.com> Date: Wed, 24 Feb 2021 17:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0Mapper=E4=B8=8EEntity?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/db1/ManufactorInfoEntity.java | 59 +++++++++++++++++++ .../mapper/db1/ManufactorInfoMapper.java | 14 +++++ 2 files changed, 73 insertions(+) create mode 100644 src/main/java/com/telpo/iotgateway/entity/db1/ManufactorInfoEntity.java create mode 100644 src/main/java/com/telpo/iotgateway/mapper/db1/ManufactorInfoMapper.java diff --git a/src/main/java/com/telpo/iotgateway/entity/db1/ManufactorInfoEntity.java b/src/main/java/com/telpo/iotgateway/entity/db1/ManufactorInfoEntity.java new file mode 100644 index 0000000..5b44c02 --- /dev/null +++ b/src/main/java/com/telpo/iotgateway/entity/db1/ManufactorInfoEntity.java @@ -0,0 +1,59 @@ +package com.telpo.iotgateway.entity.db1; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; + +import java.time.LocalDateTime; + +/** + * @program: DataPushServer + * @description: 厂商实体类 + * @author: linwl + * @create: 2020-07-17 16:47 + */ +@Setter +@Getter +@ToString +@TableName("manufactor_info") +public class ManufactorInfoEntity { + + @TableId(value = "id", type = IdType.AUTO) + private Integer id; + + /** 厂商名称 */ + private String manufactorName; + + /** 厂商id */ + private String manufactorId; + + /** 厂商公钥 */ + private String publicKey; + + /** 厂商私钥 */ + private String privateKey; + + /** 厂商地址 */ + private String manufactorAddress; + + /** 厂商状态(0-待接入中 1-正在使用 2-注销) */ + private Integer manufactorState; + + /** 厂商联系电话 */ + private String manufactorMobile; + + /** 厂商联系人 */ + private String manufactorContacts; + + /** 备注 */ + private String remark; + + /** 创建时间 */ + private LocalDateTime createTime; + + /** 跳转厂商的url */ + private String redirectUrl; +} diff --git a/src/main/java/com/telpo/iotgateway/mapper/db1/ManufactorInfoMapper.java b/src/main/java/com/telpo/iotgateway/mapper/db1/ManufactorInfoMapper.java new file mode 100644 index 0000000..e04841a --- /dev/null +++ b/src/main/java/com/telpo/iotgateway/mapper/db1/ManufactorInfoMapper.java @@ -0,0 +1,14 @@ +package com.telpo.iotgateway.mapper.db1; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.telpo.iotgateway.entity.db1.ManufactorInfoEntity; +import org.springframework.stereotype.Repository; + +/** + * @program: DataPushServer + * @description: 厂商信息mapper + * @author: linwl + * @create: 2020-07-17 16:49 + */ +@Repository +public interface ManufactorInfoMapper extends BaseMapper {}