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;
|
}
|
}
|