DevInfo.java 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. package com.hfln.device.infrastructure.po;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import lombok.Data;
  4. import lombok.EqualsAndHashCode;
  5. import java.math.BigDecimal;
  6. import java.time.LocalDateTime;
  7. /**
  8. * 设备信息表
  9. */
  10. @Data
  11. @EqualsAndHashCode(callSuper = true)
  12. @TableName("dev_info")
  13. public class DevInfo extends BasePO {
  14. /**
  15. * 主键ID
  16. */
  17. @TableId(value = "dev_id", type = IdType.ASSIGN_ID)
  18. private Long devId;
  19. /**
  20. * 设备ID
  21. */
  22. @TableField("client_id")
  23. private String clientId;
  24. /**
  25. * 用户openid
  26. */
  27. @TableField("user_id")
  28. private Long userId;
  29. /**
  30. * 设备名称
  31. */
  32. @TableField("dev_name")
  33. private String devName;
  34. /**
  35. * 设备类型
  36. */
  37. @TableField("dev_type")
  38. private String devType;
  39. /**
  40. * 在线状态:0-离线,1-在线
  41. */
  42. private Integer online;
  43. /**
  44. * 设备报警:0-正常,1-报警
  45. */
  46. @TableField("dev_warn")
  47. private Integer devWarn;
  48. /**
  49. * 软件版本号
  50. */
  51. @TableField("software")
  52. private String software;
  53. /**
  54. * 硬件版本号
  55. */
  56. @TableField("hardware")
  57. private String hardware;
  58. /**
  59. * wifi名称
  60. */
  61. @TableField("wifi_name")
  62. private String wifiName;
  63. /**
  64. * wifi密码
  65. */
  66. @TableField("wifi_password")
  67. private String wifiPassword;
  68. /**
  69. * ip地址
  70. */
  71. @TableField("ip")
  72. private String ip;
  73. /**
  74. * 安装方式:Wall-墙装,Ceiling-顶装
  75. */
  76. @TableField("mount_plain")
  77. private String mountPlain;
  78. /**
  79. * 跟踪区域起始X坐标
  80. */
  81. @TableField("start_x")
  82. private BigDecimal startX;
  83. /**
  84. * 跟踪区域起始Y坐标
  85. */
  86. @TableField("start_y")
  87. private BigDecimal startY;
  88. /**
  89. * 跟踪区域起始Z坐标
  90. */
  91. @TableField("start_z")
  92. private BigDecimal startZ;
  93. /**
  94. * 跟踪区域结束X坐标
  95. */
  96. @TableField("stop_x")
  97. private BigDecimal stopX;
  98. /**
  99. * 跟踪区域结束Y坐标
  100. */
  101. @TableField("stop_y")
  102. private BigDecimal stopY;
  103. /**
  104. * 跟踪区域结束Z坐标
  105. */
  106. @TableField("stop_z")
  107. private BigDecimal stopZ;
  108. /**
  109. * 安装高度
  110. */
  111. @TableField("height")
  112. private BigDecimal height;
  113. /**
  114. * 房间长度
  115. */
  116. @TableField("length")
  117. private BigDecimal length;
  118. /**
  119. * 房间宽度
  120. */
  121. @TableField("width")
  122. private BigDecimal width;
  123. /**
  124. * target数组
  125. */
  126. @TableField("target_points")
  127. private Object targetPoints;
  128. /**
  129. * 接收target时间
  130. */
  131. @TableField("signal_time")
  132. private LocalDateTime signalTime;
  133. /**
  134. * 北向夹角
  135. */
  136. @TableField("north_angle")
  137. private BigDecimal northAngle;
  138. /**
  139. * 安装坐标x
  140. */
  141. @TableField("x")
  142. private BigDecimal x;
  143. /**
  144. * 安装坐标y
  145. */
  146. @TableField("y")
  147. private BigDecimal y;
  148. /**
  149. * 指示灯开关:0-关闭,1-开启
  150. */
  151. @TableField("status_light")
  152. private Integer statusLight;
  153. /**
  154. * 设备保活时间戳(毫秒)
  155. */
  156. // @TableField("keepalive_time")
  157. // private Long keepaliveTime;
  158. /**
  159. * 设备信息常量类
  160. */
  161. public static class Constants {
  162. /**
  163. * 在线状态
  164. */
  165. public static class OnlineStatus {
  166. public static final int OFFLINE = 0; // 离线
  167. public static final int ONLINE = 1; // 在线
  168. }
  169. /**
  170. * 设备报警状态
  171. */
  172. public static class DevWarnStatus {
  173. public static final int NORMAL = 0; // 正常
  174. public static final int WARNING = 1; // 报警
  175. }
  176. /**
  177. * 安装方式
  178. */
  179. public static class MountPlain {
  180. public static final String WALL = "Wall"; // 墙装
  181. public static final String CEILING = "Ceiling"; // 顶装
  182. }
  183. /**
  184. * 指示灯状态
  185. */
  186. public static class StatusLight {
  187. public static final int OFF = 0; // 关闭
  188. public static final int ON = 1; // 开启
  189. }
  190. }
  191. // 补全所有字段的 getter/setter 方法
  192. public String getClientId() { return this.clientId; }
  193. public void setClientId(String clientId) { this.clientId = clientId; }
  194. public Integer getOnline() { return this.online; }
  195. public void setOnline(Integer online) { this.online = online; }
  196. public String getDevType() { return this.devType; }
  197. public void setDevType(String devType) { this.devType = devType; }
  198. public String getHardware() { return this.hardware; }
  199. public void setHardware(String hardware) { this.hardware = hardware; }
  200. public Long getKeepaliveTime() { return 0L; }
  201. public void setKeepaliveTime(Long keepaliveTime) {/* this.keepaliveTime = keepaliveTime;*/ }
  202. public String getWifiName() { return this.wifiName; }
  203. public void setWifiName(String wifiName) { this.wifiName = wifiName; }
  204. public String getWifiPassword() { return this.wifiPassword; }
  205. public void setWifiPassword(String wifiPassword) { this.wifiPassword = wifiPassword; }
  206. public String getIp() { return this.ip; }
  207. public void setIp(String ip) { this.ip = ip; }
  208. public String getMountPlain() { return this.mountPlain; }
  209. public void setMountPlain(String mountPlain) { this.mountPlain = mountPlain; }
  210. public java.math.BigDecimal getHeight() { return this.height; }
  211. public Integer getDevWarn() { return this.devWarn; }
  212. public String getDevName() { return this.devName; }
  213. public java.math.BigDecimal getStartX() { return this.startX; }
  214. public java.math.BigDecimal getStartY() { return this.startY; }
  215. public java.math.BigDecimal getStartZ() { return this.startZ; }
  216. public java.math.BigDecimal getStopX() { return this.stopX; }
  217. public java.math.BigDecimal getStopY() { return this.stopY; }
  218. public java.math.BigDecimal getStopZ() { return this.stopZ; }
  219. public java.math.BigDecimal getLength() { return this.length; }
  220. public java.math.BigDecimal getWidth() { return this.width; }
  221. public Object getTargetPoints() { return this.targetPoints; }
  222. public java.time.LocalDateTime getSignalTime() { return this.signalTime; }
  223. public java.math.BigDecimal getNorthAngle() { return this.northAngle; }
  224. public Integer getStatusLight() { return this.statusLight; }
  225. public void setHeight(java.math.BigDecimal height) { this.height = height; }
  226. public void setDevWarn(Integer devWarn) { this.devWarn = devWarn; }
  227. public void setDevName(String devName) { this.devName = devName; }
  228. public void setStartX(java.math.BigDecimal startX) { this.startX = startX; }
  229. public void setStartY(java.math.BigDecimal startY) { this.startY = startY; }
  230. public void setStartZ(java.math.BigDecimal startZ) { this.startZ = startZ; }
  231. public void setStopX(java.math.BigDecimal stopX) { this.stopX = stopX; }
  232. public void setStopY(java.math.BigDecimal stopY) { this.stopY = stopY; }
  233. public void setStopZ(java.math.BigDecimal stopZ) { this.stopZ = stopZ; }
  234. public void setLength(java.math.BigDecimal length) { this.length = length; }
  235. public void setWidth(java.math.BigDecimal width) { this.width = width; }
  236. public void setTargetPoints(Object targetPoints) { this.targetPoints = targetPoints; }
  237. public void setSignalTime(java.time.LocalDateTime signalTime) { this.signalTime = signalTime; }
  238. public void setNorthAngle(java.math.BigDecimal northAngle) { this.northAngle = northAngle; }
  239. public void setStatusLight(Integer statusLight) { this.statusLight = statusLight; }
  240. }