GasMonitorData.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. package com.zksy.gas.domain;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableField;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import com.baomidou.mybatisplus.annotation.TableName;
  6. import java.io.Serializable;
  7. import java.math.BigDecimal;
  8. import java.time.LocalDateTime;
  9. import com.fasterxml.jackson.annotation.JsonFormat;
  10. import lombok.Data;
  11. /**
  12. * 可燃气体监测仪数据表
  13. * @TableName gas_monitor_data
  14. */
  15. @TableName(value ="gas_monitor_data")
  16. @Data
  17. public class GasMonitorData implements Serializable {
  18. /**
  19. * 主键ID
  20. */
  21. @TableId(value = "id", type = IdType.ASSIGN_UUID)
  22. private String id;
  23. /**
  24. * 帧类型
  25. */
  26. @TableField(value = "frame_type")
  27. private Integer frameType;
  28. /**
  29. * MAC地址
  30. */
  31. @TableField(value = "mac_address")
  32. private String macAddress;
  33. /**
  34. * 16位短地址
  35. */
  36. @TableField(value = "short_address")
  37. private String shortAddress;
  38. /**
  39. * 自动应答选项
  40. */
  41. @TableField(value = "auto_reply_option")
  42. private Integer autoReplyOption;
  43. /**
  44. * 数据帧序号
  45. */
  46. @TableField(value = "sequence_no")
  47. private Integer sequenceNo;
  48. /**
  49. * 命令字
  50. */
  51. @TableField(value = "command")
  52. private Integer command;
  53. /**
  54. * 设备属性
  55. */
  56. @TableField(value = "device_attr")
  57. private Integer deviceAttr;
  58. /**
  59. * 协议版本
  60. */
  61. @TableField(value = "protocol_version")
  62. private String protocolVersion;
  63. /**
  64. * 报警信息(解析后二进制)
  65. */
  66. @TableField(value = "alarm_info")
  67. private Integer alarmInfo;
  68. /**
  69. * 设备上报时间戳
  70. */
  71. @TableField(value = "report_time")
  72. private LocalDateTime reportTime;
  73. /**
  74. * 气体浓度(如%LEL)
  75. */
  76. @TableField(value = "gas_concentration")
  77. private BigDecimal gasConcentration;
  78. /**
  79. * 气体类型(如CH4)
  80. */
  81. @TableField(value = "gas_type")
  82. private String gasType;
  83. /**
  84. * 气体单位
  85. */
  86. @TableField(value = "gas_unit")
  87. private String gasUnit;
  88. /**
  89. * 电池电量
  90. */
  91. @TableField(value = "battery")
  92. private BigDecimal battery;
  93. /**
  94. * 信号强度
  95. */
  96. @TableField(value = "signal_strength")
  97. private Float signalStrength;
  98. /**
  99. * 温度
  100. */
  101. @TableField(value = "temperature")
  102. private Float temperature;
  103. /**
  104. * 湿度
  105. */
  106. @TableField(value = "humidity")
  107. private Float humidity;
  108. /**
  109. * 经度
  110. */
  111. @TableField(value = "longitude")
  112. private BigDecimal longitude;
  113. /**
  114. * 纬度
  115. */
  116. @TableField(value = "latitude")
  117. private BigDecimal latitude;
  118. /**
  119. * 入库时间
  120. */
  121. @TableField(value = "create_time")
  122. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  123. private LocalDateTime createTime;
  124. @TableField(exist = false)
  125. private static final long serialVersionUID = 1L;
  126. }