whycrzg
2021-05-21 e4cd7fd3e48a5280d15cfbf07ca5e1e18b4f74d0
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
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;
    }
}