package com.zksy.gas.domain; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.math.BigDecimal; import java.time.LocalDateTime; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; /** * 可燃气体监测仪数据表 * @TableName gas_monitor_data */ @TableName(value ="gas_monitor_data") @Data public class GasMonitorData implements Serializable { /** * 主键ID */ @TableId(value = "id", type = IdType.ASSIGN_UUID) private String id; /** * 帧类型 */ @TableField(value = "frame_type") private Integer frameType; /** * MAC地址 */ @TableField(value = "mac_address") private String macAddress; /** * 16位短地址 */ @TableField(value = "short_address") private String shortAddress; /** * 自动应答选项 */ @TableField(value = "auto_reply_option") private Integer autoReplyOption; /** * 数据帧序号 */ @TableField(value = "sequence_no") private Integer sequenceNo; /** * 命令字 */ @TableField(value = "command") private Integer command; /** * 设备属性 */ @TableField(value = "device_attr") private Integer deviceAttr; /** * 协议版本 */ @TableField(value = "protocol_version") private String protocolVersion; /** * 报警信息(解析后二进制) */ @TableField(value = "alarm_info") private Integer alarmInfo; /** * 设备上报时间戳 */ @TableField(value = "report_time") private LocalDateTime reportTime; /** * 气体浓度(如%LEL) */ @TableField(value = "gas_concentration") private BigDecimal gasConcentration; /** * 气体类型(如CH4) */ @TableField(value = "gas_type") private String gasType; /** * 气体单位 */ @TableField(value = "gas_unit") private String gasUnit; /** * 电池电量 */ @TableField(value = "battery") private BigDecimal battery; /** * 信号强度 */ @TableField(value = "signal_strength") private Float signalStrength; /** * 温度 */ @TableField(value = "temperature") private Float temperature; /** * 湿度 */ @TableField(value = "humidity") private Float humidity; /** * 经度 */ @TableField(value = "longitude") private BigDecimal longitude; /** * 纬度 */ @TableField(value = "latitude") private BigDecimal latitude; /** * 入库时间 */ @TableField(value = "create_time") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private LocalDateTime createTime; @TableField(exist = false) private static final long serialVersionUID = 1L; }