Browse Source

新增生成默认业务文件

sptkw 2 năm trước cách đây
mục cha
commit
f694ec1567
43 tập tin đã thay đổi với 2962 bổ sung0 xóa
  1. 35 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotCompanyController.java
  2. 48 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotDeviceController.java
  3. 35 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotModController.java
  4. 35 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotProductController.java
  5. 35 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotProjectController.java
  6. 35 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotProjectDeviceController.java
  7. 35 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotUrlController.java
  8. 45 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotCompany.java
  9. 103 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotDevice.java
  10. 50 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotMod.java
  11. 95 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotProduct.java
  12. 60 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotProject.java
  13. 53 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotProjectDevice.java
  14. 65 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotUrl.java
  15. 25 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/vo/req/IotDeviceVo.java
  16. 54 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotCompanyMapper.java
  17. 59 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotDeviceMapper.java
  18. 54 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotModMapper.java
  19. 54 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotProductMapper.java
  20. 54 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotProjectDeviceMapper.java
  21. 54 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotProjectMapper.java
  22. 54 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotUrlMapper.java
  23. 51 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotCompanyServiceImpl.java
  24. 60 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotDeviceServiceImpl.java
  25. 51 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotModServiceImpl.java
  26. 51 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotProductServiceImpl.java
  27. 51 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotProjectDeviceServiceImpl.java
  28. 51 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotProjectServiceImpl.java
  29. 51 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotUrlServiceImpl.java
  30. 24 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotCompanyService.java
  31. 29 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotDeviceService.java
  32. 24 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotModService.java
  33. 24 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotProductService.java
  34. 24 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotProjectDeviceService.java
  35. 24 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotProjectService.java
  36. 24 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotUrlService.java
  37. 131 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotCompanyMapper.xml
  38. 267 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotDeviceMapper.xml
  39. 143 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotModMapper.xml
  40. 249 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotProductMapper.xml
  41. 151 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotProjectDeviceMapper.xml
  42. 167 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotProjectMapper.xml
  43. 178 0
      iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotUrlMapper.xml

+ 35 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotCompanyController.java

@@ -0,0 +1,35 @@
+package com.middle.platform.manage.biz.controller;
+
+import com.middle.platform.manage.biz.domain.IotCompany;
+import com.middle.platform.manage.biz.service.IotCompanyServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+* 企业表(iot_company)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/iot_company")
+@RequiredArgsConstructor
+public class IotCompanyController {
+/**
+* 服务对象
+*/
+private final IotCompanyServiceImpl iotCompanyServiceImpl;
+
+/**
+* 通过主键查询单条数据
+*
+* @param id 主键
+* @return 单条数据
+*/
+@GetMapping("selectOne")
+public IotCompany selectOne(Long id) {
+return iotCompanyServiceImpl.selectByPrimaryKey(id);
+}
+
+}

+ 48 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotDeviceController.java

@@ -0,0 +1,48 @@
+package com.middle.platform.manage.biz.controller;
+import com.middle.platform.common.utils.Result;
+import com.middle.platform.manage.biz.domain.IotDevice;
+import com.middle.platform.manage.biz.domain.vo.req.IotDeviceVo;
+import com.middle.platform.manage.biz.service.IotDeviceServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.List;
+
+
+/**
+ * 设备表(iot_device)表控制层
+ * @author Aick Spt
+ * @date 2023-12-18 10:38
+ */
+@RestController
+@RequestMapping("/device")
+@RequiredArgsConstructor
+public class IotDeviceController {
+    /**
+    * 服务对象
+    */
+    private final IotDeviceServiceImpl iotDeviceServiceImpl;
+
+
+    @PostMapping(name = "获取设备",path = "/select")
+    public Result<IotDevice> select(@RequestBody @Validated IotDeviceVo params){
+
+        List<IotDevice> list = iotDeviceServiceImpl.select(params);
+
+        return Result.ok(iotDeviceServiceImpl.selectByPrimaryKey(null));
+    }
+
+
+    /**
+    * 通过主键查询单条数据
+    *
+    * @param id 主键
+    * @return 单条数据
+    */
+    @GetMapping("selectOne")
+    public Result<IotDevice> selectOne(Long id) {
+        return Result.ok(iotDeviceServiceImpl.selectByPrimaryKey(id));
+    }
+
+}

+ 35 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotModController.java

@@ -0,0 +1,35 @@
+package com.middle.platform.manage.biz.controller;
+
+import com.middle.platform.manage.biz.domain.IotMod;
+import com.middle.platform.manage.biz.service.IotModServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+* 物模型表(iot_mod)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/iot_mod")
+@RequiredArgsConstructor
+public class IotModController {
+/**
+* 服务对象
+*/
+private final IotModServiceImpl iotModServiceImpl;
+
+/**
+* 通过主键查询单条数据
+*
+* @param id 主键
+* @return 单条数据
+*/
+@GetMapping("selectOne")
+public IotMod selectOne(Long id) {
+return iotModServiceImpl.selectByPrimaryKey(id);
+}
+
+}

+ 35 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotProductController.java

@@ -0,0 +1,35 @@
+package com.middle.platform.manage.biz.controller;
+
+import com.middle.platform.manage.biz.domain.IotProduct;
+import com.middle.platform.manage.biz.service.IotProductServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+* 产品表(iot_product)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/iot_product")
+@RequiredArgsConstructor
+public class IotProductController {
+/**
+* 服务对象
+*/
+private final IotProductServiceImpl iotProductServiceImpl;
+
+/**
+* 通过主键查询单条数据
+*
+* @param id 主键
+* @return 单条数据
+*/
+@GetMapping("selectOne")
+public IotProduct selectOne(Long id) {
+return iotProductServiceImpl.selectByPrimaryKey(id);
+}
+
+}

+ 35 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotProjectController.java

@@ -0,0 +1,35 @@
+package com.middle.platform.manage.biz.controller;
+
+import com.middle.platform.manage.biz.domain.IotProject;
+import com.middle.platform.manage.biz.service.IotProjectServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+* 项目表(iot_project)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/iot_project")
+@RequiredArgsConstructor
+public class IotProjectController {
+/**
+* 服务对象
+*/
+private final IotProjectServiceImpl iotProjectServiceImpl;
+
+/**
+* 通过主键查询单条数据
+*
+* @param id 主键
+* @return 单条数据
+*/
+@GetMapping("selectOne")
+public IotProject selectOne(Long id) {
+return iotProjectServiceImpl.selectByPrimaryKey(id);
+}
+
+}

+ 35 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotProjectDeviceController.java

@@ -0,0 +1,35 @@
+package com.middle.platform.manage.biz.controller;
+
+import com.middle.platform.manage.biz.domain.IotProjectDevice;
+import com.middle.platform.manage.biz.service.IotProjectDeviceServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+* 产品关联设备表(iot_project_device)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/iot_project_device")
+@RequiredArgsConstructor
+public class IotProjectDeviceController {
+/**
+* 服务对象
+*/
+private final IotProjectDeviceServiceImpl iotProjectDeviceServiceImpl;
+
+/**
+* 通过主键查询单条数据
+*
+* @param id 主键
+* @return 单条数据
+*/
+@GetMapping("selectOne")
+public IotProjectDevice selectOne(Long id) {
+return iotProjectDeviceServiceImpl.selectByPrimaryKey(id);
+}
+
+}

+ 35 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/controller/IotUrlController.java

@@ -0,0 +1,35 @@
+package com.middle.platform.manage.biz.controller;
+
+import com.middle.platform.manage.biz.domain.IotUrl;
+import com.middle.platform.manage.biz.service.IotUrlServiceImpl;
+import lombok.RequiredArgsConstructor;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+* 数据上下行关系表(iot_url)表控制层
+*
+* @author xxxxx
+*/
+@RestController
+@RequestMapping("/iot_url")
+@RequiredArgsConstructor
+public class IotUrlController {
+/**
+* 服务对象
+*/
+private final IotUrlServiceImpl iotUrlServiceImpl;
+
+/**
+* 通过主键查询单条数据
+*
+* @param id 主键
+* @return 单条数据
+*/
+@GetMapping("selectOne")
+public IotUrl selectOne(Long id) {
+return iotUrlServiceImpl.selectByPrimaryKey(id);
+}
+
+}

+ 45 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotCompany.java

@@ -0,0 +1,45 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.util.Date;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 企业表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotCompany {
+    private Long id;
+
+    /**
+    * 企业名称
+    */
+    private String title;
+
+    /**
+    * 备注
+    */
+    private String remark;
+
+    private Integer createBy;
+
+    private Date createTime;
+
+    private Integer updateBy;
+
+    private Date updateTime;
+
+    private Date deleteTime;
+}

+ 103 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotDevice.java

@@ -0,0 +1,103 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+import com.middle.platform.mybatis.core.dataobject.BaseDO;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 设备表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotDevice extends BaseDO {
+    private Long id;
+
+    /**
+    * 所属产品
+    */
+    private Long productId;
+
+    /**
+    * 设备名称
+    */
+    private String name;
+
+    /**
+    * 设备sn码
+    */
+    private String sn;
+
+    /**
+    * 设备guid
+    */
+    private String guid;
+
+    /**
+    * 备注名称
+    */
+    private String subtitle;
+
+    /**
+    * 经度
+    */
+    private BigDecimal lon;
+
+    /**
+    * 纬度
+    */
+    private BigDecimal lat;
+
+    /**
+    * 所属区域
+    */
+    private String address;
+
+    /**
+    * 最后在线时间
+    */
+    private Date onlineTime;
+
+    /**
+    * 设备状态 1-在线 0-离线
+    */
+    private Byte status;
+
+    /**
+    * 启用状态 1-启用 0-禁用
+    */
+    private Byte enableFlag;
+
+    /**
+    * 备注
+    */
+    private String remark;
+
+    private Integer createBy;
+
+    private Date createTime;
+
+    private Integer updateBy;
+
+    private Date updateTime;
+
+    private Date deleteTime;
+
+    /**
+    * 删除标识
+    */
+    private Byte delFlag;
+}

+ 50 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotMod.java

@@ -0,0 +1,50 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.util.Date;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 物模型表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotMod {
+    private Long id;
+
+    /**
+    * 产品id
+    */
+    private Long productId;
+
+    /**
+    * 物模型TSL的JSON
+    */
+    private String tslJson;
+
+    private Integer createBy;
+
+    private Date createTime;
+
+    private Integer updateBy;
+
+    private Date updateTime;
+
+    private Date deleteTime;
+
+    /**
+    * 删除标识
+    */
+    private Byte delFlag;
+}

+ 95 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotProduct.java

@@ -0,0 +1,95 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.util.Date;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 产品表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotProduct {
+    private Long id;
+
+    /**
+    * 产品编码
+    */
+    private String code;
+
+    /**
+    * 产品名称
+    */
+    private String name;
+
+    /**
+    * 密匙(未知作用)
+    */
+    private String secret;
+
+    /**
+    * 节点类型:1网关、2子设备
+    */
+    private Byte nodeType;
+
+    /**
+    * 联网类型
+    */
+    private Byte networkType;
+
+    /**
+    * 上报协议
+    */
+    private Byte reportProtocol;
+
+    /**
+    * 数据格式
+    */
+    private Byte dataFormat;
+
+    /**
+    * 认证方式
+    */
+    private Byte authType;
+
+    /**
+    * 产品标签
+    */
+    private String tag;
+
+    /**
+    * 设备数
+    */
+    private Integer size;
+
+    /**
+    * 备注
+    */
+    private String remark;
+
+    private Integer createBy;
+
+    private Date createTime;
+
+    private Integer updateBy;
+
+    private Date updateTime;
+
+    private Date deleteTime;
+
+    /**
+    * 删除标识
+    */
+    private Byte delFlag;
+}

+ 60 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotProject.java

@@ -0,0 +1,60 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.util.Date;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 项目表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotProject {
+    private Long id;
+
+    /**
+    * 所属企业id
+    */
+    private Long companyId;
+
+    /**
+    * 项目编号
+    */
+    private String code;
+
+    /**
+    * 项目名称
+    */
+    private String title;
+
+    /**
+    * 备注
+    */
+    private String remark;
+
+    /**
+    * 状态
+    */
+    private Byte status;
+
+    private Integer createBy;
+
+    private Date createTime;
+
+    private Integer updateBy;
+
+    private Date updateTime;
+
+    private Date deleteTime;
+}

+ 53 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotProjectDevice.java

@@ -0,0 +1,53 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.util.Date;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 产品关联设备表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotProjectDevice {
+    /**
+    * id
+    */
+    private Long id;
+
+    /**
+    * 项目id
+    */
+    private Long projectId;
+
+    /**
+    * 设备id
+    */
+    private Long deviceId;
+
+    private Integer createBy;
+
+    private Date updateTime;
+
+    private Integer updateBy;
+
+    private Date createTime;
+
+    private Date deleteTime;
+
+    /**
+    * 删除标识
+    */
+    private Byte delFlag;
+}

+ 65 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/IotUrl.java

@@ -0,0 +1,65 @@
+package com.middle.platform.manage.biz.domain;
+
+import java.util.Date;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.experimental.Accessors;
+import lombok.experimental.SuperBuilder;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+/**
+    * 数据上下行关系表
+    */
+@Getter
+@Setter
+@Accessors(chain = true)
+@SuperBuilder
+@Builder
+public class IotUrl {
+    private Long id;
+
+    /**
+    * 产品id
+    */
+    private Long productId;
+
+    /**
+    * 地址 topic地址 https地址
+    */
+    private String url;
+
+    /**
+    * 地址类型 1-mqtt 2-http 3-coap
+    */
+    private Byte type;
+
+    /**
+    * 设备权限:1发布 2订阅 3发布和订阅
+    */
+    private Byte permission;
+
+    /**
+    * 备注
+    */
+    private String remark;
+
+    private Integer createBy;
+
+    private Date createTime;
+
+    private Integer updateBy;
+
+    private Date updateTime;
+
+    private Date deleteTime;
+
+    /**
+    * 删除标识
+    */
+    private Byte delFlag;
+}

+ 25 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/domain/vo/req/IotDeviceVo.java

@@ -0,0 +1,25 @@
+package com.middle.platform.manage.biz.domain.vo.req;
+
+import com.middle.platform.common.page.PageParams;
+import jakarta.validation.constraints.NotBlank;
+import lombok.Getter;
+import lombok.Setter;
+import lombok.ToString;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 13:48
+ */
+@Getter
+@Setter
+@ToString
+public class IotDeviceVo extends PageParams {
+
+    private Long id;
+
+    private String name;
+
+    @NotBlank(message = "产品ID不能为空")
+    private Long productId;
+
+}

+ 54 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotCompanyMapper.java

@@ -0,0 +1,54 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotCompany;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotCompanyMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotCompany record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotCompany record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotCompany selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotCompany record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotCompany record);
+}

+ 59 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotDeviceMapper.java

@@ -0,0 +1,59 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotDevice;
+import com.middle.platform.manage.biz.domain.vo.req.IotDeviceVo;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.List;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotDeviceMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotDevice record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotDevice record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotDevice selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotDevice record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotDevice record);
+
+    List<IotDevice> select(IotDeviceVo params);
+}

+ 54 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotModMapper.java

@@ -0,0 +1,54 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotMod;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotModMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotMod record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotMod record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotMod selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotMod record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotMod record);
+}

+ 54 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotProductMapper.java

@@ -0,0 +1,54 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotProduct;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotProductMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotProduct record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotProduct record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotProduct selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotProduct record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotProduct record);
+}

+ 54 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotProjectDeviceMapper.java

@@ -0,0 +1,54 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotProjectDevice;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotProjectDeviceMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotProjectDevice record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotProjectDevice record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotProjectDevice selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotProjectDevice record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotProjectDevice record);
+}

+ 54 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotProjectMapper.java

@@ -0,0 +1,54 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotProject;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotProjectMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotProject record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotProject record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotProject selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotProject record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotProject record);
+}

+ 54 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/mapper/IotUrlMapper.java

@@ -0,0 +1,54 @@
+package com.middle.platform.manage.biz.mapper;
+
+import com.middle.platform.manage.biz.domain.IotUrl;
+import org.apache.ibatis.annotations.Mapper;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:09
+ */
+
+@Mapper
+public interface IotUrlMapper {
+    /**
+     * delete by primary key
+     * @param id primaryKey
+     * @return deleteCount
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * insert record to table
+     * @param record the record
+     * @return insert count
+     */
+    int insert(IotUrl record);
+
+    /**
+     * insert record to table selective
+     * @param record the record
+     * @return insert count
+     */
+    int insertSelective(IotUrl record);
+
+    /**
+     * select by primary key
+     * @param id primary key
+     * @return object by primary key
+     */
+    IotUrl selectByPrimaryKey(Long id);
+
+    /**
+     * update record selective
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKeySelective(IotUrl record);
+
+    /**
+     * update record
+     * @param record the updated record
+     * @return update count
+     */
+    int updateByPrimaryKey(IotUrl record);
+}

+ 51 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotCompanyServiceImpl.java

@@ -0,0 +1,51 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotCompany;
+import com.middle.platform.manage.biz.mapper.IotCompanyMapper;
+import com.middle.platform.manage.biz.service.impl.IotCompanyService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotCompanyServiceImpl implements IotCompanyService {
+
+    private final IotCompanyMapper iotCompanyMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotCompanyMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotCompany record) {
+        return iotCompanyMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotCompany record) {
+        return iotCompanyMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotCompany selectByPrimaryKey(Long id) {
+        return iotCompanyMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotCompany record) {
+        return iotCompanyMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotCompany record) {
+        return iotCompanyMapper.updateByPrimaryKey(record);
+    }
+
+}

+ 60 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotDeviceServiceImpl.java

@@ -0,0 +1,60 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotDevice;
+import com.middle.platform.manage.biz.domain.vo.req.IotDeviceVo;
+import com.middle.platform.manage.biz.mapper.IotDeviceMapper;
+import com.middle.platform.manage.biz.service.impl.IotDeviceService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotDeviceServiceImpl implements IotDeviceService {
+
+    private final IotDeviceMapper iotDeviceMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotDeviceMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotDevice record) {
+        return iotDeviceMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotDevice record) {
+        return iotDeviceMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotDevice selectByPrimaryKey(Long id) {
+        return iotDeviceMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotDevice record) {
+        return iotDeviceMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotDevice record) {
+        return iotDeviceMapper.updateByPrimaryKey(record);
+    }
+
+    @Override
+    public List<IotDevice> select(IotDeviceVo params) {
+        return iotDeviceMapper.select(params);
+    }
+
+}

+ 51 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotModServiceImpl.java

@@ -0,0 +1,51 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotMod;
+import com.middle.platform.manage.biz.mapper.IotModMapper;
+import com.middle.platform.manage.biz.service.impl.IotModService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotModServiceImpl implements IotModService {
+
+    private final IotModMapper iotModMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotModMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotMod record) {
+        return iotModMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotMod record) {
+        return iotModMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotMod selectByPrimaryKey(Long id) {
+        return iotModMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotMod record) {
+        return iotModMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotMod record) {
+        return iotModMapper.updateByPrimaryKey(record);
+    }
+
+}

+ 51 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotProductServiceImpl.java

@@ -0,0 +1,51 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotProduct;
+import com.middle.platform.manage.biz.mapper.IotProductMapper;
+import com.middle.platform.manage.biz.service.impl.IotProductService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotProductServiceImpl implements IotProductService {
+
+    private final IotProductMapper iotProductMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotProductMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotProduct record) {
+        return iotProductMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotProduct record) {
+        return iotProductMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotProduct selectByPrimaryKey(Long id) {
+        return iotProductMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotProduct record) {
+        return iotProductMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotProduct record) {
+        return iotProductMapper.updateByPrimaryKey(record);
+    }
+
+}

+ 51 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotProjectDeviceServiceImpl.java

@@ -0,0 +1,51 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotProjectDevice;
+import com.middle.platform.manage.biz.mapper.IotProjectDeviceMapper;
+import com.middle.platform.manage.biz.service.impl.IotProjectDeviceService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotProjectDeviceServiceImpl implements IotProjectDeviceService {
+
+    private final IotProjectDeviceMapper iotProjectDeviceMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotProjectDeviceMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotProjectDevice record) {
+        return iotProjectDeviceMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotProjectDevice record) {
+        return iotProjectDeviceMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotProjectDevice selectByPrimaryKey(Long id) {
+        return iotProjectDeviceMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotProjectDevice record) {
+        return iotProjectDeviceMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotProjectDevice record) {
+        return iotProjectDeviceMapper.updateByPrimaryKey(record);
+    }
+
+}

+ 51 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotProjectServiceImpl.java

@@ -0,0 +1,51 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotProject;
+import com.middle.platform.manage.biz.mapper.IotProjectMapper;
+import com.middle.platform.manage.biz.service.impl.IotProjectService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotProjectServiceImpl implements IotProjectService {
+
+    private final IotProjectMapper iotProjectMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotProjectMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotProject record) {
+        return iotProjectMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotProject record) {
+        return iotProjectMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotProject selectByPrimaryKey(Long id) {
+        return iotProjectMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotProject record) {
+        return iotProjectMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotProject record) {
+        return iotProjectMapper.updateByPrimaryKey(record);
+    }
+
+}

+ 51 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/IotUrlServiceImpl.java

@@ -0,0 +1,51 @@
+package com.middle.platform.manage.biz.service;
+
+import com.middle.platform.manage.biz.domain.IotUrl;
+import com.middle.platform.manage.biz.mapper.IotUrlMapper;
+import com.middle.platform.manage.biz.service.impl.IotUrlService;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Service;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+@Slf4j
+@Service
+@RequiredArgsConstructor
+public class IotUrlServiceImpl implements IotUrlService {
+
+    private final IotUrlMapper iotUrlMapper;
+
+    @Override
+    public int deleteByPrimaryKey(Long id) {
+        return iotUrlMapper.deleteByPrimaryKey(id);
+    }
+
+    @Override
+    public int insert(IotUrl record) {
+        return iotUrlMapper.insert(record);
+    }
+
+    @Override
+    public int insertSelective(IotUrl record) {
+        return iotUrlMapper.insertSelective(record);
+    }
+
+    @Override
+    public IotUrl selectByPrimaryKey(Long id) {
+        return iotUrlMapper.selectByPrimaryKey(id);
+    }
+
+    @Override
+    public int updateByPrimaryKeySelective(IotUrl record) {
+        return iotUrlMapper.updateByPrimaryKeySelective(record);
+    }
+
+    @Override
+    public int updateByPrimaryKey(IotUrl record) {
+        return iotUrlMapper.updateByPrimaryKey(record);
+    }
+
+}

+ 24 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotCompanyService.java

@@ -0,0 +1,24 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotCompany;
+    /**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotCompanyService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotCompany record);
+
+    int insertSelective(IotCompany record);
+
+    IotCompany selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotCompany record);
+
+    int updateByPrimaryKey(IotCompany record);
+
+}

+ 29 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotDeviceService.java

@@ -0,0 +1,29 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotDevice;
+import com.middle.platform.manage.biz.domain.vo.req.IotDeviceVo;
+
+import java.util.List;
+
+/**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotDeviceService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotDevice record);
+
+    int insertSelective(IotDevice record);
+
+    IotDevice selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotDevice record);
+
+    int updateByPrimaryKey(IotDevice record);
+
+        List<IotDevice> select(IotDeviceVo params);
+    }

+ 24 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotModService.java

@@ -0,0 +1,24 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotMod;
+    /**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotModService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotMod record);
+
+    int insertSelective(IotMod record);
+
+    IotMod selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotMod record);
+
+    int updateByPrimaryKey(IotMod record);
+
+}

+ 24 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotProductService.java

@@ -0,0 +1,24 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotProduct;
+    /**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotProductService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotProduct record);
+
+    int insertSelective(IotProduct record);
+
+    IotProduct selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotProduct record);
+
+    int updateByPrimaryKey(IotProduct record);
+
+}

+ 24 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotProjectDeviceService.java

@@ -0,0 +1,24 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotProjectDevice;
+    /**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotProjectDeviceService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotProjectDevice record);
+
+    int insertSelective(IotProjectDevice record);
+
+    IotProjectDevice selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotProjectDevice record);
+
+    int updateByPrimaryKey(IotProjectDevice record);
+
+}

+ 24 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotProjectService.java

@@ -0,0 +1,24 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotProject;
+    /**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotProjectService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotProject record);
+
+    int insertSelective(IotProject record);
+
+    IotProject selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotProject record);
+
+    int updateByPrimaryKey(IotProject record);
+
+}

+ 24 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/java/com/middle/platform/manage/biz/service/impl/IotUrlService.java

@@ -0,0 +1,24 @@
+package com.middle.platform.manage.biz.service.impl;
+
+import com.middle.platform.manage.biz.domain.IotUrl;
+    /**
+ * @author Aick Spt
+ * @date 2023-12-18 10:08
+ */
+
+public interface IotUrlService{
+
+
+    int deleteByPrimaryKey(Long id);
+
+    int insert(IotUrl record);
+
+    int insertSelective(IotUrl record);
+
+    IotUrl selectByPrimaryKey(Long id);
+
+    int updateByPrimaryKeySelective(IotUrl record);
+
+    int updateByPrimaryKey(IotUrl record);
+
+}

+ 131 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotCompanyMapper.xml

@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotCompanyMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotCompany">
+    <!--@mbg.generated-->
+    <!--@Table iot_company-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="title" jdbcType="VARCHAR" property="title" />
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, title, remark, create_by, create_time, update_by, update_time, delete_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_company
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_company
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotCompany" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_company (title, remark, create_by, 
+      create_time, update_by, update_time, 
+      delete_time)
+    values (#{title,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotCompany" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_company
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="title != null">
+        title,
+      </if>
+      <if test="remark != null">
+        remark,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="title != null">
+        #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="remark != null">
+        #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotCompany">
+    <!--@mbg.generated-->
+    update iot_company
+    <set>
+      <if test="title != null">
+        title = #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="remark != null">
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotCompany">
+    <!--@mbg.generated-->
+    update iot_company
+    set title = #{title,jdbcType=VARCHAR},
+      remark = #{remark,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 267 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotDeviceMapper.xml

@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotDeviceMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotDevice">
+    <!--@mbg.generated-->
+    <!--@Table iot_device-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="product_id" jdbcType="INTEGER" property="productId" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="sn" jdbcType="VARCHAR" property="sn" />
+    <result column="guid" jdbcType="VARCHAR" property="guid" />
+    <result column="subtitle" jdbcType="VARCHAR" property="subtitle" />
+    <result column="lon" jdbcType="DECIMAL" property="lon" />
+    <result column="lat" jdbcType="DECIMAL" property="lat" />
+    <result column="address" jdbcType="VARCHAR" property="address" />
+    <result column="online_time" jdbcType="TIMESTAMP" property="onlineTime" />
+    <result column="status" jdbcType="TINYINT" property="status" />
+    <result column="enable_flag" jdbcType="TINYINT" property="enableFlag" />
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, product_id, `name`, sn, guid, subtitle, lon, lat, address, online_time, `status`, enable_flag, 
+    remark, create_by, create_time, update_by, update_time, delete_time, del_flag
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_device
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_device
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotDevice" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_device (product_id, `name`, sn, 
+      guid, subtitle, lon, 
+      lat, address, online_time, 
+      `status`, enable_flag, remark, 
+      create_by, create_time, update_by, 
+      update_time, delete_time, del_flag
+      )
+    values (#{productId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{sn,jdbcType=VARCHAR}, 
+      #{guid,jdbcType=VARCHAR}, #{subtitle,jdbcType=VARCHAR}, #{lon,jdbcType=DECIMAL}, 
+      #{lat,jdbcType=DECIMAL}, #{address,jdbcType=VARCHAR}, #{onlineTime,jdbcType=TIMESTAMP}, 
+      #{status,jdbcType=TINYINT}, #{enableFlag,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, 
+      #{createBy,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, 
+      #{updateTime,jdbcType=TIMESTAMP}, #{deleteTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}
+      )
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotDevice" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_device
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="productId != null">
+        product_id,
+      </if>
+      <if test="name != null">
+        `name`,
+      </if>
+      <if test="sn != null">
+        sn,
+      </if>
+      <if test="guid != null">
+        guid,
+      </if>
+      <if test="subtitle != null">
+        subtitle,
+      </if>
+      <if test="lon != null">
+        lon,
+      </if>
+      <if test="lat != null">
+        lat,
+      </if>
+      <if test="address != null">
+        address,
+      </if>
+      <if test="onlineTime != null">
+        online_time,
+      </if>
+      <if test="status != null">
+        `status`,
+      </if>
+      <if test="enableFlag != null">
+        enable_flag,
+      </if>
+      <if test="remark != null">
+        remark,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+      <if test="delFlag != null">
+        del_flag,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="productId != null">
+        #{productId,jdbcType=INTEGER},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="sn != null">
+        #{sn,jdbcType=VARCHAR},
+      </if>
+      <if test="guid != null">
+        #{guid,jdbcType=VARCHAR},
+      </if>
+      <if test="subtitle != null">
+        #{subtitle,jdbcType=VARCHAR},
+      </if>
+      <if test="lon != null">
+        #{lon,jdbcType=DECIMAL},
+      </if>
+      <if test="lat != null">
+        #{lat,jdbcType=DECIMAL},
+      </if>
+      <if test="address != null">
+        #{address,jdbcType=VARCHAR},
+      </if>
+      <if test="onlineTime != null">
+        #{onlineTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=TINYINT},
+      </if>
+      <if test="enableFlag != null">
+        #{enableFlag,jdbcType=TINYINT},
+      </if>
+      <if test="remark != null">
+        #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        #{delFlag,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotDevice">
+    <!--@mbg.generated-->
+    update iot_device
+    <set>
+      <if test="productId != null">
+        product_id = #{productId,jdbcType=INTEGER},
+      </if>
+      <if test="name != null">
+        `name` = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="sn != null">
+        sn = #{sn,jdbcType=VARCHAR},
+      </if>
+      <if test="guid != null">
+        guid = #{guid,jdbcType=VARCHAR},
+      </if>
+      <if test="subtitle != null">
+        subtitle = #{subtitle,jdbcType=VARCHAR},
+      </if>
+      <if test="lon != null">
+        lon = #{lon,jdbcType=DECIMAL},
+      </if>
+      <if test="lat != null">
+        lat = #{lat,jdbcType=DECIMAL},
+      </if>
+      <if test="address != null">
+        address = #{address,jdbcType=VARCHAR},
+      </if>
+      <if test="onlineTime != null">
+        online_time = #{onlineTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="status != null">
+        `status` = #{status,jdbcType=TINYINT},
+      </if>
+      <if test="enableFlag != null">
+        enable_flag = #{enableFlag,jdbcType=TINYINT},
+      </if>
+      <if test="remark != null">
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        del_flag = #{delFlag,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotDevice">
+    <!--@mbg.generated-->
+    update iot_device
+    set product_id = #{productId,jdbcType=INTEGER},
+      `name` = #{name,jdbcType=VARCHAR},
+      sn = #{sn,jdbcType=VARCHAR},
+      guid = #{guid,jdbcType=VARCHAR},
+      subtitle = #{subtitle,jdbcType=VARCHAR},
+      lon = #{lon,jdbcType=DECIMAL},
+      lat = #{lat,jdbcType=DECIMAL},
+      address = #{address,jdbcType=VARCHAR},
+      online_time = #{onlineTime,jdbcType=TIMESTAMP},
+      `status` = #{status,jdbcType=TINYINT},
+      enable_flag = #{enableFlag,jdbcType=TINYINT},
+      remark = #{remark,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      del_flag = #{delFlag,jdbcType=TINYINT}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+
+  <select id="select" resultMap="BaseResultMap"  parameterType="com.middle.platform.manage.biz.domain.IotDevice">
+    select
+    <include refid="Base_Column_List" />
+    from iot_device
+  </select>
+</mapper>

+ 143 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotModMapper.xml

@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotModMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotMod">
+    <!--@mbg.generated-->
+    <!--@Table iot_mod-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="product_id" jdbcType="INTEGER" property="productId" />
+    <result column="tsl_json" jdbcType="VARCHAR" property="tslJson" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, product_id, tsl_json, create_by, create_time, update_by, update_time, delete_time, 
+    del_flag
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_mod
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_mod
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotMod" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_mod (product_id, tsl_json, create_by, 
+      create_time, update_by, update_time, 
+      delete_time, del_flag)
+    values (#{productId,jdbcType=INTEGER}, #{tslJson,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotMod" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_mod
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="productId != null">
+        product_id,
+      </if>
+      <if test="tslJson != null">
+        tsl_json,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+      <if test="delFlag != null">
+        del_flag,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="productId != null">
+        #{productId,jdbcType=INTEGER},
+      </if>
+      <if test="tslJson != null">
+        #{tslJson,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        #{delFlag,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotMod">
+    <!--@mbg.generated-->
+    update iot_mod
+    <set>
+      <if test="productId != null">
+        product_id = #{productId,jdbcType=INTEGER},
+      </if>
+      <if test="tslJson != null">
+        tsl_json = #{tslJson,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        del_flag = #{delFlag,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotMod">
+    <!--@mbg.generated-->
+    update iot_mod
+    set product_id = #{productId,jdbcType=INTEGER},
+      tsl_json = #{tslJson,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      del_flag = #{delFlag,jdbcType=TINYINT}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 249 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotProductMapper.xml

@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotProductMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotProduct">
+    <!--@mbg.generated-->
+    <!--@Table iot_product-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="code" jdbcType="VARCHAR" property="code" />
+    <result column="name" jdbcType="VARCHAR" property="name" />
+    <result column="secret" jdbcType="VARCHAR" property="secret" />
+    <result column="node_type" jdbcType="TINYINT" property="nodeType" />
+    <result column="network_type" jdbcType="TINYINT" property="networkType" />
+    <result column="report_protocol" jdbcType="TINYINT" property="reportProtocol" />
+    <result column="data_format" jdbcType="TINYINT" property="dataFormat" />
+    <result column="auth_type" jdbcType="TINYINT" property="authType" />
+    <result column="tag" jdbcType="VARCHAR" property="tag" />
+    <result column="size" jdbcType="INTEGER" property="size" />
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, code, `name`, secret, node_type, network_type, report_protocol, data_format, 
+    auth_type, tag, `size`, remark, create_by, create_time, update_by, update_time, delete_time, 
+    del_flag
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_product
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_product
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotProduct" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_product (code, `name`, secret, 
+      node_type, network_type, report_protocol, 
+      data_format, auth_type, tag, 
+      `size`, remark, create_by, 
+      create_time, update_by, update_time, 
+      delete_time, del_flag)
+    values (#{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{secret,jdbcType=VARCHAR}, 
+      #{nodeType,jdbcType=TINYINT}, #{networkType,jdbcType=TINYINT}, #{reportProtocol,jdbcType=TINYINT}, 
+      #{dataFormat,jdbcType=TINYINT}, #{authType,jdbcType=TINYINT}, #{tag,jdbcType=VARCHAR}, 
+      #{size,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotProduct" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_product
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="code != null">
+        code,
+      </if>
+      <if test="name != null">
+        `name`,
+      </if>
+      <if test="secret != null">
+        secret,
+      </if>
+      <if test="nodeType != null">
+        node_type,
+      </if>
+      <if test="networkType != null">
+        network_type,
+      </if>
+      <if test="reportProtocol != null">
+        report_protocol,
+      </if>
+      <if test="dataFormat != null">
+        data_format,
+      </if>
+      <if test="authType != null">
+        auth_type,
+      </if>
+      <if test="tag != null">
+        tag,
+      </if>
+      <if test="size != null">
+        `size`,
+      </if>
+      <if test="remark != null">
+        remark,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+      <if test="delFlag != null">
+        del_flag,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="code != null">
+        #{code,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="secret != null">
+        #{secret,jdbcType=VARCHAR},
+      </if>
+      <if test="nodeType != null">
+        #{nodeType,jdbcType=TINYINT},
+      </if>
+      <if test="networkType != null">
+        #{networkType,jdbcType=TINYINT},
+      </if>
+      <if test="reportProtocol != null">
+        #{reportProtocol,jdbcType=TINYINT},
+      </if>
+      <if test="dataFormat != null">
+        #{dataFormat,jdbcType=TINYINT},
+      </if>
+      <if test="authType != null">
+        #{authType,jdbcType=TINYINT},
+      </if>
+      <if test="tag != null">
+        #{tag,jdbcType=VARCHAR},
+      </if>
+      <if test="size != null">
+        #{size,jdbcType=INTEGER},
+      </if>
+      <if test="remark != null">
+        #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        #{delFlag,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotProduct">
+    <!--@mbg.generated-->
+    update iot_product
+    <set>
+      <if test="code != null">
+        code = #{code,jdbcType=VARCHAR},
+      </if>
+      <if test="name != null">
+        `name` = #{name,jdbcType=VARCHAR},
+      </if>
+      <if test="secret != null">
+        secret = #{secret,jdbcType=VARCHAR},
+      </if>
+      <if test="nodeType != null">
+        node_type = #{nodeType,jdbcType=TINYINT},
+      </if>
+      <if test="networkType != null">
+        network_type = #{networkType,jdbcType=TINYINT},
+      </if>
+      <if test="reportProtocol != null">
+        report_protocol = #{reportProtocol,jdbcType=TINYINT},
+      </if>
+      <if test="dataFormat != null">
+        data_format = #{dataFormat,jdbcType=TINYINT},
+      </if>
+      <if test="authType != null">
+        auth_type = #{authType,jdbcType=TINYINT},
+      </if>
+      <if test="tag != null">
+        tag = #{tag,jdbcType=VARCHAR},
+      </if>
+      <if test="size != null">
+        `size` = #{size,jdbcType=INTEGER},
+      </if>
+      <if test="remark != null">
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        del_flag = #{delFlag,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotProduct">
+    <!--@mbg.generated-->
+    update iot_product
+    set code = #{code,jdbcType=VARCHAR},
+      `name` = #{name,jdbcType=VARCHAR},
+      secret = #{secret,jdbcType=VARCHAR},
+      node_type = #{nodeType,jdbcType=TINYINT},
+      network_type = #{networkType,jdbcType=TINYINT},
+      report_protocol = #{reportProtocol,jdbcType=TINYINT},
+      data_format = #{dataFormat,jdbcType=TINYINT},
+      auth_type = #{authType,jdbcType=TINYINT},
+      tag = #{tag,jdbcType=VARCHAR},
+      `size` = #{size,jdbcType=INTEGER},
+      remark = #{remark,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      del_flag = #{delFlag,jdbcType=TINYINT}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 151 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotProjectDeviceMapper.xml

@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotProjectDeviceMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotProjectDevice">
+    <!--@mbg.generated-->
+    <!--@Table iot_project_device-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="project_id" jdbcType="INTEGER" property="projectId" />
+    <result column="device_id" jdbcType="INTEGER" property="deviceId" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, project_id, device_id, create_by, update_time, update_by, create_time, delete_time, 
+    del_flag
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_project_device
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_project_device
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" parameterType="com.middle.platform.manage.biz.domain.IotProjectDevice">
+    <!--@mbg.generated-->
+    insert into iot_project_device (id, project_id, device_id, 
+      create_by, update_time, update_by, 
+      create_time, delete_time, del_flag
+      )
+    values (#{id,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{deviceId,jdbcType=INTEGER}, 
+      #{createBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{deleteTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.middle.platform.manage.biz.domain.IotProjectDevice">
+    <!--@mbg.generated-->
+    insert into iot_project_device
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="projectId != null">
+        project_id,
+      </if>
+      <if test="deviceId != null">
+        device_id,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+      <if test="delFlag != null">
+        del_flag,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=INTEGER},
+      </if>
+      <if test="projectId != null">
+        #{projectId,jdbcType=INTEGER},
+      </if>
+      <if test="deviceId != null">
+        #{deviceId,jdbcType=INTEGER},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        #{delFlag,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotProjectDevice">
+    <!--@mbg.generated-->
+    update iot_project_device
+    <set>
+      <if test="projectId != null">
+        project_id = #{projectId,jdbcType=INTEGER},
+      </if>
+      <if test="deviceId != null">
+        device_id = #{deviceId,jdbcType=INTEGER},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        del_flag = #{delFlag,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotProjectDevice">
+    <!--@mbg.generated-->
+    update iot_project_device
+    set project_id = #{projectId,jdbcType=INTEGER},
+      device_id = #{deviceId,jdbcType=INTEGER},
+      create_by = #{createBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      del_flag = #{delFlag,jdbcType=TINYINT}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 167 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotProjectMapper.xml

@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotProjectMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotProject">
+    <!--@mbg.generated-->
+    <!--@Table iot_project-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="company_id" jdbcType="INTEGER" property="companyId" />
+    <result column="code" jdbcType="VARCHAR" property="code" />
+    <result column="title" jdbcType="VARCHAR" property="title" />
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
+    <result column="status" jdbcType="TINYINT" property="status" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, company_id, code, title, remark, `status`, create_by, create_time, update_by, 
+    update_time, delete_time
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_project
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_project
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotProject" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_project (company_id, code, title, 
+      remark, `status`, create_by, 
+      create_time, update_by, update_time, 
+      delete_time)
+    values (#{companyId,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, 
+      #{remark,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createBy,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotProject" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_project
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="companyId != null">
+        company_id,
+      </if>
+      <if test="code != null">
+        code,
+      </if>
+      <if test="title != null">
+        title,
+      </if>
+      <if test="remark != null">
+        remark,
+      </if>
+      <if test="status != null">
+        `status`,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="companyId != null">
+        #{companyId,jdbcType=INTEGER},
+      </if>
+      <if test="code != null">
+        #{code,jdbcType=VARCHAR},
+      </if>
+      <if test="title != null">
+        #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="remark != null">
+        #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="status != null">
+        #{status,jdbcType=TINYINT},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotProject">
+    <!--@mbg.generated-->
+    update iot_project
+    <set>
+      <if test="companyId != null">
+        company_id = #{companyId,jdbcType=INTEGER},
+      </if>
+      <if test="code != null">
+        code = #{code,jdbcType=VARCHAR},
+      </if>
+      <if test="title != null">
+        title = #{title,jdbcType=VARCHAR},
+      </if>
+      <if test="remark != null">
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="status != null">
+        `status` = #{status,jdbcType=TINYINT},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotProject">
+    <!--@mbg.generated-->
+    update iot_project
+    set company_id = #{companyId,jdbcType=INTEGER},
+      code = #{code,jdbcType=VARCHAR},
+      title = #{title,jdbcType=VARCHAR},
+      remark = #{remark,jdbcType=VARCHAR},
+      `status` = #{status,jdbcType=TINYINT},
+      create_by = #{createBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>

+ 178 - 0
iot-module/iot-module-manage/iot-module-manage-biz/src/main/resources/mapper/IotUrlMapper.xml

@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.middle.platform.manage.biz.mapper.IotUrlMapper">
+  <resultMap id="BaseResultMap" type="com.middle.platform.manage.biz.domain.IotUrl">
+    <!--@mbg.generated-->
+    <!--@Table iot_url-->
+    <id column="id" jdbcType="INTEGER" property="id" />
+    <result column="product_id" jdbcType="INTEGER" property="productId" />
+    <result column="url" jdbcType="VARCHAR" property="url" />
+    <result column="type" jdbcType="TINYINT" property="type" />
+    <result column="permission" jdbcType="TINYINT" property="permission" />
+    <result column="remark" jdbcType="VARCHAR" property="remark" />
+    <result column="create_by" jdbcType="INTEGER" property="createBy" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+    <result column="update_by" jdbcType="INTEGER" property="updateBy" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+    <result column="delete_time" jdbcType="TIMESTAMP" property="deleteTime" />
+    <result column="del_flag" jdbcType="TINYINT" property="delFlag" />
+  </resultMap>
+  <sql id="Base_Column_List">
+    <!--@mbg.generated-->
+    id, product_id, url, `type`, permission, remark, create_by, create_time, update_by, 
+    update_time, delete_time, del_flag
+  </sql>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
+    <!--@mbg.generated-->
+    select 
+    <include refid="Base_Column_List" />
+    from iot_url
+    where id = #{id,jdbcType=INTEGER}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
+    <!--@mbg.generated-->
+    delete from iot_url
+    where id = #{id,jdbcType=INTEGER}
+  </delete>
+  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotUrl" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_url (product_id, url, `type`, 
+      permission, remark, create_by, 
+      create_time, update_by, update_time, 
+      delete_time, del_flag)
+    values (#{productId,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, 
+      #{permission,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{createBy,jdbcType=INTEGER}, 
+      #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=INTEGER}, #{updateTime,jdbcType=TIMESTAMP}, 
+      #{deleteTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT})
+  </insert>
+  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.middle.platform.manage.biz.domain.IotUrl" useGeneratedKeys="true">
+    <!--@mbg.generated-->
+    insert into iot_url
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="productId != null">
+        product_id,
+      </if>
+      <if test="url != null">
+        url,
+      </if>
+      <if test="type != null">
+        `type`,
+      </if>
+      <if test="permission != null">
+        permission,
+      </if>
+      <if test="remark != null">
+        remark,
+      </if>
+      <if test="createBy != null">
+        create_by,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+      <if test="updateBy != null">
+        update_by,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+      <if test="deleteTime != null">
+        delete_time,
+      </if>
+      <if test="delFlag != null">
+        del_flag,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="productId != null">
+        #{productId,jdbcType=INTEGER},
+      </if>
+      <if test="url != null">
+        #{url,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null">
+        #{type,jdbcType=TINYINT},
+      </if>
+      <if test="permission != null">
+        #{permission,jdbcType=TINYINT},
+      </if>
+      <if test="remark != null">
+        #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        #{delFlag,jdbcType=TINYINT},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKeySelective" parameterType="com.middle.platform.manage.biz.domain.IotUrl">
+    <!--@mbg.generated-->
+    update iot_url
+    <set>
+      <if test="productId != null">
+        product_id = #{productId,jdbcType=INTEGER},
+      </if>
+      <if test="url != null">
+        url = #{url,jdbcType=VARCHAR},
+      </if>
+      <if test="type != null">
+        `type` = #{type,jdbcType=TINYINT},
+      </if>
+      <if test="permission != null">
+        permission = #{permission,jdbcType=TINYINT},
+      </if>
+      <if test="remark != null">
+        remark = #{remark,jdbcType=VARCHAR},
+      </if>
+      <if test="createBy != null">
+        create_by = #{createBy,jdbcType=INTEGER},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateBy != null">
+        update_by = #{updateBy,jdbcType=INTEGER},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="deleteTime != null">
+        delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="delFlag != null">
+        del_flag = #{delFlag,jdbcType=TINYINT},
+      </if>
+    </set>
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.middle.platform.manage.biz.domain.IotUrl">
+    <!--@mbg.generated-->
+    update iot_url
+    set product_id = #{productId,jdbcType=INTEGER},
+      url = #{url,jdbcType=VARCHAR},
+      `type` = #{type,jdbcType=TINYINT},
+      permission = #{permission,jdbcType=TINYINT},
+      remark = #{remark,jdbcType=VARCHAR},
+      create_by = #{createBy,jdbcType=INTEGER},
+      create_time = #{createTime,jdbcType=TIMESTAMP},
+      update_by = #{updateBy,jdbcType=INTEGER},
+      update_time = #{updateTime,jdbcType=TIMESTAMP},
+      delete_time = #{deleteTime,jdbcType=TIMESTAMP},
+      del_flag = #{delFlag,jdbcType=TINYINT}
+    where id = #{id,jdbcType=INTEGER}
+  </update>
+</mapper>