|
@@ -0,0 +1,147 @@
|
|
|
+/*
|
|
|
+ * Copyright [2022] [https://www.xiaonuo.vip]
|
|
|
+ *
|
|
|
+ * Snowy采用APACHE LICENSE 2.0开源协议,您在使用过程中,需要注意以下几点:
|
|
|
+ *
|
|
|
+ * 1.请不要删除和修改根目录下的LICENSE文件。
|
|
|
+ * 2.请不要删除和修改Snowy源码头部的版权声明。
|
|
|
+ * 3.本项目代码可免费商业使用,商业使用请保留源码和相关描述文件的项目出处,作者声明等。
|
|
|
+ * 4.分发源码时候,请注明软件出处 https://www.xiaonuo.vip
|
|
|
+ * 5.不可二次分发开源参与同类竞品,如有想法可联系团队xiaonuobase@qq.com商议合作。
|
|
|
+ * 6.若您的项目无法满足以上几点,需要更多功能代码,获取Snowy商业授权许可,请在官网购买授权,地址为 https://www.xiaonuo.vip
|
|
|
+ */
|
|
|
+package vip.xiaonuo.coldchain.modular.monitordevice.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import lombok.Getter;
|
|
|
+import lombok.Setter;
|
|
|
+import vip.xiaonuo.coldchain.modular.monitordevice.enums.MonitorDeviceStatusEnum;
|
|
|
+import vip.xiaonuo.common.pojo.CommonEntity;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import javax.validation.constraints.Size;
|
|
|
+import java.util.Date;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 采集器管理实体
|
|
|
+ *
|
|
|
+ * @author 黄渊昊
|
|
|
+ * @date 2024/11/13 16:55
|
|
|
+ **/
|
|
|
+@Getter
|
|
|
+@Setter
|
|
|
+@TableName("monitor_device")
|
|
|
+public class MonitorDeviceTran extends CommonEntity {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备唯一标识符,UUID
|
|
|
+ */
|
|
|
+ @TableId
|
|
|
+ @Schema(description = "设备唯一标识符,UUID")
|
|
|
+ private String id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备名称
|
|
|
+ */
|
|
|
+ @Schema(description = "设备名称")
|
|
|
+ private String deviceName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备编码
|
|
|
+ */
|
|
|
+ @Schema(description = "设备编码")
|
|
|
+ private String deviceCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备型号
|
|
|
+ */
|
|
|
+ @Schema(description = "设备型号")
|
|
|
+ private String modelName;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 最后心跳时间
|
|
|
+ */
|
|
|
+ @Schema(description = "最后心跳时间")
|
|
|
+ private Date lastHeartbeatTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备状态(1:正常,2:闲置)
|
|
|
+ */
|
|
|
+ @Schema(description = "设备状态(1:正常,2:闲置)")
|
|
|
+ private String status = MonitorDeviceStatusEnum.NORMAL.getValue();
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 传感器路数
|
|
|
+ */
|
|
|
+ @Schema(description = "传感器路数")
|
|
|
+ @NotNull(message = "传感器路数不能为空")
|
|
|
+ @Size(min = 1, max = 4, message = "传感器路数的大小必须在1到10之间")
|
|
|
+ private Integer sensorCount;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 最近登录时间
|
|
|
+ */
|
|
|
+ @Schema(description = "最近登录时间")
|
|
|
+ private Date lastLoginTime;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 排序码
|
|
|
+ */
|
|
|
+ @Schema(description = "排序码")
|
|
|
+ private Integer sortCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 扩展信息
|
|
|
+ */
|
|
|
+ @Schema(description = "扩展信息")
|
|
|
+ private String extraInfo;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除标志
|
|
|
+ */
|
|
|
+ @Schema(description = "删除标志")
|
|
|
+ private String isDeleted;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 记录创建时间
|
|
|
+ */
|
|
|
+ @Schema(description = "记录创建时间")
|
|
|
+ private Date createdAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 记录创建用户
|
|
|
+ */
|
|
|
+ @Schema(description = "记录创建用户")
|
|
|
+ private String createdBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 记录修改时间
|
|
|
+ */
|
|
|
+ @Schema(description = "记录修改时间")
|
|
|
+ private Date updatedAt;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 记录修改用户
|
|
|
+ */
|
|
|
+ @Schema(description = "记录修改用户")
|
|
|
+ private String updatedBy;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备参数编号信息
|
|
|
+ */
|
|
|
+ @Schema(description = "设备参数编号信息")
|
|
|
+ @TableField(value = "param_ids")//, typeHandler = JacksonTypeHandler.class)
|
|
|
+// private List<Integer> paramIds;
|
|
|
+ private String paramIds;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 设备参数信息
|
|
|
+ */
|
|
|
+ @Schema(description = "设备参数信息")
|
|
|
+ @TableField(value = "parameters")//, typeHandler = JacksonTypeHandler.class)
|
|
|
+// private List<ParamItem> parameters;
|
|
|
+ private String parameters;
|
|
|
+}
|