郑永安
2023-09-19 69185134fcfaf913ea45f1255677225a2cc311a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package com.gk.hotwork.Domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.data.relational.core.mapping.Table;
 
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
 
@Table("device_ping")
public class DevicePing implements Serializable {
 
    @TableId(type = IdType.AUTO)
    private Long id;
    //"Router" 代表通讯基站/网关,"Beacon" 表示是定位信标, "Tag" 表示标签, "Station" 代表定位基站
    private String deviceType;
    //标签编号
    private String uid;
 
    private Date raiseTime;
    //电压数值
    private BigDecimal volt;
    //电压单位  "%"或者"V"
    private String voltUnit;
    //是否静止
    private Boolean silent;
    //仅在deviceType="Beacon" 时有效, 表示转发基站的编号(信标的状态必须通过某个基站转发)
    private String routerId;
    //0x02 处在一键呼救报警状态 , 0x04 静止状态
    private String state;
 
    private Date createTime;
 
    public String getDeviceType() {
        return deviceType;
    }
 
    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }
 
    public String getUid() {
        return uid;
    }
 
    public void setUid(String uid) {
        this.uid = uid;
    }
 
    public Date getRaiseTime() {
        return raiseTime;
    }
 
    public void setRaiseTime(Date raiseTime) {
        this.raiseTime = raiseTime;
    }
 
    public BigDecimal getVolt() {
        return volt;
    }
 
    public void setVolt(BigDecimal volt) {
        this.volt = volt;
    }
 
    public String getVoltUnit() {
        return voltUnit;
    }
 
    public void setVoltUnit(String voltUnit) {
        this.voltUnit = voltUnit;
    }
 
    public Boolean getSilent() {
        return silent;
    }
 
    public void setSilent(Boolean silent) {
        this.silent = silent;
    }
 
    public String getRouterId() {
        return routerId;
    }
 
    public void setRouterId(String routerId) {
        this.routerId = routerId;
    }
 
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setId(Long id) {
        this.id = id;
    }
}