HiveBeehive.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package com.huimv.beeboxs.entity;
  2. import com.baomidou.mybatisplus.annotation.TableName;
  3. import com.baomidou.mybatisplus.annotation.IdType;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import java.time.LocalDateTime;
  6. import java.io.Serializable;
  7. import java.util.Date;
  8. import com.fasterxml.jackson.annotation.JsonFormat;
  9. import lombok.Data;
  10. import lombok.EqualsAndHashCode;
  11. import lombok.experimental.Accessors;
  12. /**
  13. * <p>
  14. *
  15. * </p>
  16. *
  17. * @author author
  18. * @since 2022-04-21
  19. */
  20. @Data
  21. @EqualsAndHashCode(callSuper = false)
  22. @Accessors(chain = true)
  23. @TableName("hive_beehive")
  24. public class HiveBeehive implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26. @TableId(value = "id", type = IdType.AUTO)
  27. private Integer id;
  28. /**
  29. * 传感器 ID
  30. */
  31. private String hiveId;
  32. /**
  33. * 基站ID
  34. */
  35. private String stationId;
  36. /**
  37. * 蜂箱编码
  38. */
  39. private String hiveCode;
  40. /**
  41. * 网络状态
  42. */
  43. private Integer netStatus;
  44. /**
  45. * 电量
  46. */
  47. private String bat;
  48. /**
  49. * 信号强度
  50. */
  51. private String rssi;
  52. /**
  53. * 状态
  54. */
  55. private Integer beeStatus;
  56. /**
  57. * 温度
  58. */
  59. private String temp;
  60. /**
  61. * 湿度
  62. */
  63. private String humi;
  64. /**
  65. * 上传时间
  66. */
  67. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  68. private Date uploadTime;
  69. /**
  70. * 拓展字段 1
  71. */
  72. private String other1;
  73. /**
  74. * 拓展字段 2
  75. */
  76. private String other2;
  77. /**
  78. * 日期
  79. */
  80. @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  81. private Date createDate;
  82. /**
  83. * 牧场id
  84. */
  85. private Integer farmId;
  86. }