package com.whyc.pojo;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import org.apache.ibatis.type.Alias;
|
|
import java.util.Date;
|
|
/**
|
* 设备的通讯状态
|
*/
|
@Alias("DeviceState")
|
@TableName(schema = "`db_3.5mw_motor`",value = "tb_device_state")
|
@ApiModel
|
public class DeviceState {
|
|
/**代理主键*/
|
private Long num;
|
/**自然主键*/
|
@TableId(value = "dev_id")
|
private Integer deviceId;
|
private Date recordTime;
|
/**通讯状态*/
|
@ApiModelProperty("通讯状态:0-通讯故障,1-通讯正常")
|
private Integer commStatus;
|
private String note;
|
private Integer position; //设备的固定标识
|
|
public Long getNum() {
|
return num;
|
}
|
|
public void setNum(Long num) {
|
this.num = num;
|
}
|
|
public Integer getDeviceId() {
|
return deviceId;
|
}
|
|
public void setDeviceId(Integer deviceId) {
|
this.deviceId = deviceId;
|
}
|
|
public Date getRecordTime() {
|
return recordTime;
|
}
|
|
public void setRecordTime(Date recordTime) {
|
this.recordTime = recordTime;
|
}
|
|
public Integer getCommStatus() {
|
return commStatus;
|
}
|
|
public void setCommStatus(Integer commStatus) {
|
this.commStatus = commStatus;
|
}
|
|
public String getNote() {
|
return note;
|
}
|
|
public void setNote(String note) {
|
this.note = note;
|
}
|
|
public Integer getPosition() {
|
return position;
|
}
|
|
public void setPosition(Integer position) {
|
this.position = position;
|
}
|
}
|