|
@@ -0,0 +1,108 @@
|
|
|
+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("env_data")
|
|
|
+public class EnvData 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;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 电压有效值
|
|
|
+ */
|
|
|
+ @TableField("voltage")
|
|
|
+ private String voltage;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 电流有效值
|
|
|
+ */
|
|
|
+ @TableField("electric_current")
|
|
|
+ private String electricCurrent;
|
|
|
+
|
|
|
+ @TableField("temp")
|
|
|
+ private String temp;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 漏电值
|
|
|
+ */
|
|
|
+ @TableField("leakage_value")
|
|
|
+ private String leakageValue;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 有功功率
|
|
|
+ */
|
|
|
+ @TableField("active_power")
|
|
|
+ private Integer activePower;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 无功功率
|
|
|
+ */
|
|
|
+ @TableField("reactive_power")
|
|
|
+ private Integer reactivePower;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 视在功率
|
|
|
+ */
|
|
|
+ @TableField("apparent_power")
|
|
|
+ private Integer apparentPower;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 高温报警 0 无
|
|
|
+ */
|
|
|
+ @TableField("height_temp_warning")
|
|
|
+ private Integer heightTempWarning;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 充电报警 0 无
|
|
|
+ */
|
|
|
+ @TableField("charging_warning")
|
|
|
+ private Integer chargingWarning;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 漏电报警 0 无
|
|
|
+ */
|
|
|
+ @TableField("leakage_warning")
|
|
|
+ private Integer leakageWarning;
|
|
|
+
|
|
|
+ @TableField("original_data")
|
|
|
+ private String originalData;
|
|
|
+
|
|
|
+ @TableField("create_time")
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
|
|
|
+ private LocalDateTime createTime;
|
|
|
+
|
|
|
+
|
|
|
+}
|