whyczh
2021-04-07 9f83bdaebfd57892bc48857c286780a01efeb581
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
package com.whyc.pojo;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.ibatis.type.Alias;
 
import java.util.Date;
 
/**
 * 设备管理
 */
@Alias("DeviceManage")
@TableName(schema = "db_experiment",value = "tb_device_manage")
public class DeviceManage {
 
    private Integer num;
    @TableId(type = IdType.INPUT)
    private Integer deviceId;
    private String deviceName;
    /**设备品牌*/
    private String  deviceBrand;
    /**设备型号*/
    private String  deviceVersion;
    /**设备类型*/
    @TableField(exist = false)
    private DeviceType deviceType;
    /**设备类型名称*/
    @TableField(exist = false)
    private String deviceTypeName;
    /**设备类型*/
    private Integer deviceTypeId;
    /**使用年限*/
    private Integer usefulLife;
    /**调试完成时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date debugTime;
    /**入库时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date createTime;
    /**安装场地*/
    private String  site;
    /**责任人*/
    private String  owner;
    /**TODO*/
    private String  param;
    /**报废时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date scrapTime;
    /**设备状态:新增时设备状态为1(入库),报废时设备状态为0(出库)*/
    private Byte status;
 
    public Integer getNum() {
        return num;
    }
 
    public void setNum(Integer num) {
        this.num = num;
    }
 
    public Integer getDeviceId() {
        return deviceId;
    }
 
    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }
 
    public String getDeviceName() {
        return deviceName;
    }
 
    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
 
    public String getDeviceBrand() {
        return deviceBrand;
    }
 
    public void setDeviceBrand(String deviceBrand) {
        this.deviceBrand = deviceBrand;
    }
 
    public String getDeviceVersion() {
        return deviceVersion;
    }
 
    public void setDeviceVersion(String deviceVersion) {
        this.deviceVersion = deviceVersion;
    }
 
    public DeviceType getDeviceType() {
        return deviceType;
    }
 
    public void setDeviceType(DeviceType deviceType) {
        this.deviceType = deviceType;
    }
 
    public Integer getUsefulLife() {
        return usefulLife;
    }
 
    public void setUsefulLife(Integer usefulLife) {
        this.usefulLife = usefulLife;
    }
 
    public Date getDebugTime() {
        return debugTime;
    }
 
    public void setDebugTime(Date debugTime) {
        this.debugTime = debugTime;
    }
 
    public String getSite() {
        return site;
    }
 
    public void setSite(String site) {
        this.site = site;
    }
 
    public String getOwner() {
        return owner;
    }
 
    public void setOwner(String owner) {
        this.owner = owner;
    }
 
    public String getParam() {
        return param;
    }
 
    public void setParam(String param) {
        this.param = param;
    }
 
    public Byte getStatus() {
        return status;
    }
 
    public void setStatus(Byte status) {
        this.status = status;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Date getScrapTime() {
        return scrapTime;
    }
 
    public void setScrapTime(Date scrapTime) {
        this.scrapTime = scrapTime;
    }
 
    public Integer getDeviceTypeId() {
        return deviceTypeId;
    }
 
    public void setDeviceTypeId(Integer deviceTypeId) {
        this.deviceTypeId = deviceTypeId;
    }
 
    public String getDeviceTypeName() {
        return deviceTypeName;
    }
 
    public void setDeviceTypeName(String deviceTypeName) {
        this.deviceTypeName = deviceTypeName;
    }
}