123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- package com.hfln.device.infrastructure.po;
- import com.baomidou.mybatisplus.annotation.*;
- import lombok.Data;
- import lombok.EqualsAndHashCode;
- import java.math.BigDecimal;
- import java.time.LocalDateTime;
- /**
- * 设备信息表
- */
- @Data
- @EqualsAndHashCode(callSuper = true)
- @TableName("dev_info")
- public class DevInfo extends BasePO {
- /**
- * 主键ID
- */
- @TableId(value = "dev_id", type = IdType.ASSIGN_ID)
- private Long devId;
- /**
- * 设备ID
- */
- @TableField("client_id")
- private String clientId;
- /**
- * 用户openid
- */
- @TableField("user_id")
- private Long userId;
- /**
- * 设备名称
- */
- @TableField("dev_name")
- private String devName;
- /**
- * 设备类型
- */
- @TableField("dev_type")
- private String devType;
- /**
- * 在线状态:0-离线,1-在线
- */
- private Integer online;
- /**
- * 设备报警:0-正常,1-报警
- */
- @TableField("dev_warn")
- private Integer devWarn;
- /**
- * 软件版本号
- */
- @TableField("software")
- private String software;
- /**
- * 硬件版本号
- */
- @TableField("hardware")
- private String hardware;
- /**
- * wifi名称
- */
- @TableField("wifi_name")
- private String wifiName;
- /**
- * wifi密码
- */
- @TableField("wifi_password")
- private String wifiPassword;
- /**
- * ip地址
- */
- @TableField("ip")
- private String ip;
- /**
- * 安装方式:Wall-墙装,Ceiling-顶装
- */
- @TableField("mount_plain")
- private String mountPlain;
- /**
- * 跟踪区域起始X坐标
- */
- @TableField("start_x")
- private BigDecimal startX;
- /**
- * 跟踪区域起始Y坐标
- */
- @TableField("start_y")
- private BigDecimal startY;
- /**
- * 跟踪区域起始Z坐标
- */
- @TableField("start_z")
- private BigDecimal startZ;
- /**
- * 跟踪区域结束X坐标
- */
- @TableField("stop_x")
- private BigDecimal stopX;
- /**
- * 跟踪区域结束Y坐标
- */
- @TableField("stop_y")
- private BigDecimal stopY;
- /**
- * 跟踪区域结束Z坐标
- */
- @TableField("stop_z")
- private BigDecimal stopZ;
- /**
- * 安装高度
- */
- @TableField("height")
- private BigDecimal height;
- /**
- * 房间长度
- */
- @TableField("length")
- private BigDecimal length;
- /**
- * 房间宽度
- */
- @TableField("width")
- private BigDecimal width;
- /**
- * target数组
- */
- @TableField("target_points")
- private Object targetPoints;
- /**
- * 接收target时间
- */
- @TableField("signal_time")
- private LocalDateTime signalTime;
- /**
- * 北向夹角
- */
- @TableField("north_angle")
- private BigDecimal northAngle;
- /**
- * 安装坐标x
- */
- @TableField("x")
- private BigDecimal x;
- /**
- * 安装坐标y
- */
- @TableField("y")
- private BigDecimal y;
- /**
- * 指示灯开关:0-关闭,1-开启
- */
- @TableField("status_light")
- private Integer statusLight;
-
- /**
- * 设备保活时间戳(毫秒)
- */
- // @TableField("keepalive_time")
- // private Long keepaliveTime;
- /**
- * 设备信息常量类
- */
- public static class Constants {
-
- /**
- * 在线状态
- */
- public static class OnlineStatus {
- public static final int OFFLINE = 0; // 离线
- public static final int ONLINE = 1; // 在线
- }
-
- /**
- * 设备报警状态
- */
- public static class DevWarnStatus {
- public static final int NORMAL = 0; // 正常
- public static final int WARNING = 1; // 报警
- }
-
- /**
- * 安装方式
- */
- public static class MountPlain {
- public static final String WALL = "Wall"; // 墙装
- public static final String CEILING = "Ceiling"; // 顶装
- }
-
- /**
- * 指示灯状态
- */
- public static class StatusLight {
- public static final int OFF = 0; // 关闭
- public static final int ON = 1; // 开启
- }
- }
- // 补全所有字段的 getter/setter 方法
- public String getClientId() { return this.clientId; }
- public void setClientId(String clientId) { this.clientId = clientId; }
- public Integer getOnline() { return this.online; }
- public void setOnline(Integer online) { this.online = online; }
- public String getDevType() { return this.devType; }
- public void setDevType(String devType) { this.devType = devType; }
- public String getHardware() { return this.hardware; }
- public void setHardware(String hardware) { this.hardware = hardware; }
- public Long getKeepaliveTime() { return 0L; }
- public void setKeepaliveTime(Long keepaliveTime) {/* this.keepaliveTime = keepaliveTime;*/ }
- public String getWifiName() { return this.wifiName; }
- public void setWifiName(String wifiName) { this.wifiName = wifiName; }
- public String getWifiPassword() { return this.wifiPassword; }
- public void setWifiPassword(String wifiPassword) { this.wifiPassword = wifiPassword; }
- public String getIp() { return this.ip; }
- public void setIp(String ip) { this.ip = ip; }
- public String getMountPlain() { return this.mountPlain; }
- public void setMountPlain(String mountPlain) { this.mountPlain = mountPlain; }
- public java.math.BigDecimal getHeight() { return this.height; }
- public Integer getDevWarn() { return this.devWarn; }
- public String getDevName() { return this.devName; }
- public java.math.BigDecimal getStartX() { return this.startX; }
- public java.math.BigDecimal getStartY() { return this.startY; }
- public java.math.BigDecimal getStartZ() { return this.startZ; }
- public java.math.BigDecimal getStopX() { return this.stopX; }
- public java.math.BigDecimal getStopY() { return this.stopY; }
- public java.math.BigDecimal getStopZ() { return this.stopZ; }
- public java.math.BigDecimal getLength() { return this.length; }
- public java.math.BigDecimal getWidth() { return this.width; }
- public Object getTargetPoints() { return this.targetPoints; }
- public java.time.LocalDateTime getSignalTime() { return this.signalTime; }
- public java.math.BigDecimal getNorthAngle() { return this.northAngle; }
- public Integer getStatusLight() { return this.statusLight; }
- public void setHeight(java.math.BigDecimal height) { this.height = height; }
- public void setDevWarn(Integer devWarn) { this.devWarn = devWarn; }
- public void setDevName(String devName) { this.devName = devName; }
- public void setStartX(java.math.BigDecimal startX) { this.startX = startX; }
- public void setStartY(java.math.BigDecimal startY) { this.startY = startY; }
- public void setStartZ(java.math.BigDecimal startZ) { this.startZ = startZ; }
- public void setStopX(java.math.BigDecimal stopX) { this.stopX = stopX; }
- public void setStopY(java.math.BigDecimal stopY) { this.stopY = stopY; }
- public void setStopZ(java.math.BigDecimal stopZ) { this.stopZ = stopZ; }
- public void setLength(java.math.BigDecimal length) { this.length = length; }
- public void setWidth(java.math.BigDecimal width) { this.width = width; }
- public void setTargetPoints(Object targetPoints) { this.targetPoints = targetPoints; }
- public void setSignalTime(java.time.LocalDateTime signalTime) { this.signalTime = signalTime; }
- public void setNorthAngle(java.math.BigDecimal northAngle) { this.northAngle = northAngle; }
- public void setStatusLight(Integer statusLight) { this.statusLight = statusLight; }
- }
|