whycxzp
2021-03-30 f100037d7ff1d575ee23effbb5ca77e01e12c564
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("DeviceMaintain")
@TableName(schema = "db_experiment",value = "tb_device_maintain")
public class DeviceMaintain {
    private Integer num;
    @TableId(type = IdType.INPUT)
    private Integer deviceId;
    /**设备在库信息*/
    @TableField(exist = false)
    private DeviceManage deviceManage;
    /**维护厂家*/
    private String  owner;
    /**维护人员*/
    private String  owner2;
    /**联系电话*/
    private String  phone;
    /**维护周期,单位为月*/
    private Integer  cycle;
    /**首次维护时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date firstTime;
    /**提前提醒时间,单位为天*/
    private Integer reminderAheadUnit;
    /**提醒方式:1-列表提醒,2-页面弹窗,3-短信提醒*/
    private Integer  reminderType;
    /**状态:1-有效,0-失效*/
    private Integer status;
    /**记录类型:1-计划,0-记录*/
    @TableField("is_plan")
    private Integer plan;
    /**实际维护时间*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date actualTime;
    /**实际维护人员*/
    private String actualOwner2;
    /**主要维护内容*/
    private String content;
    /**最后维护时间,动态计算*/
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date lastMaintainTime;
 
    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 getOwner() {
        return owner;
    }
 
    public void setOwner(String owner) {
        this.owner = owner;
    }
 
    public String getOwner2() {
        return owner2;
    }
 
    public void setOwner2(String owner2) {
        this.owner2 = owner2;
    }
 
    public String getPhone() {
        return phone;
    }
 
    public void setPhone(String phone) {
        this.phone = phone;
    }
 
    public Integer getCycle() {
        return cycle;
    }
 
    public void setCycle(Integer cycle) {
        this.cycle = cycle;
    }
 
    public Integer getReminderAheadUnit() {
        return reminderAheadUnit;
    }
 
    public void setReminderAheadUnit(Integer reminderAheadUnit) {
        this.reminderAheadUnit = reminderAheadUnit;
    }
 
    public Integer getReminderType() {
        return reminderType;
    }
 
    public void setReminderType(Integer reminderType) {
        this.reminderType = reminderType;
    }
 
    public Date getFirstTime() {
        return firstTime;
    }
 
    public void setFirstTime(Date firstTime) {
        this.firstTime = firstTime;
    }
 
    public Integer getStatus() {
        return status;
    }
 
    public void setStatus(Integer status) {
        this.status = status;
    }
 
    public Date getActualTime() {
        return actualTime;
    }
 
    public void setActualTime(Date actualTime) {
        this.actualTime = actualTime;
    }
 
    public String getActualOwner2() {
        return actualOwner2;
    }
 
    public void setActualOwner2(String actualOwner2) {
        this.actualOwner2 = actualOwner2;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public DeviceManage getDeviceManage() {
        return deviceManage;
    }
 
    public void setDeviceManage(DeviceManage deviceManage) {
        this.deviceManage = deviceManage;
    }
 
    public Integer getPlan() {
        return plan;
    }
 
    public void setPlan(Integer plan) {
        this.plan = plan;
    }
 
    public Date getLastMaintainTime() {
        return lastMaintainTime;
    }
 
    public void setLastMaintainTime(Date lastMaintainTime) {
        this.lastMaintainTime = lastMaintainTime;
    }
}