|
@@ -0,0 +1,72 @@
|
|
|
+package com.huimv.env.admin.entity;
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
+import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
+import java.time.LocalDateTime;
|
|
|
+import java.io.Serializable;
|
|
|
+
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ *
|
|
|
+ * </p>
|
|
|
+ *
|
|
|
+ * @author newspaper
|
|
|
+ * @since 2024-05-09
|
|
|
+ */
|
|
|
+@Data
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName("port_warning_info")
|
|
|
+public class PortWarningInfo implements Serializable {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ @TableId(value = "id", type = IdType.AUTO)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 端口
|
|
|
+ */
|
|
|
+ @TableField("terminal_port_code")
|
|
|
+ private String terminalPortCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 传感器
|
|
|
+ */
|
|
|
+ @TableField("terminal_code")
|
|
|
+ private String terminalCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 网关
|
|
|
+ */
|
|
|
+ @TableField("gatway_code")
|
|
|
+ private String gatwayCode;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 0离线 1高温报警 2充电报警 3漏电报警
|
|
|
+ */
|
|
|
+ @TableField("warning_type")
|
|
|
+ private Integer warningType;
|
|
|
+
|
|
|
+ @TableField("farm_id")
|
|
|
+ private Integer farmId;
|
|
|
+
|
|
|
+ @TableField("location_id")
|
|
|
+ private Integer locationId;
|
|
|
+
|
|
|
+ @TableField("content")
|
|
|
+ private String content;
|
|
|
+
|
|
|
+ @TableField("create_time")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
|
|
|
+ private LocalDateTime createTime;
|
|
|
+
|
|
|
+
|
|
|
+}
|