yangys
2024-11-02 f69073b835f1a0c66590130e1830edcdd75ebb8a
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
package com.qianwen.smartman.modules.tpm.vo.excel;
 
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import com.qianwen.smartman.common.cache.RegionCache;
 
@HeadRowHeight(20)
@ColumnWidth(25)
@ContentRowHeight(18)
 
public class MaintainPlanExcel implements Serializable {
    @ExcelProperty({"计划单号"})
    @ApiModelProperty("计划单号")
    private String code;
    @ExcelProperty({"机器编码"})
    @ApiModelProperty("机器编码")
    private String deviceCode;
    @ExcelProperty({"机器名称"})
    @ApiModelProperty("机器名称")
    private String deviceName;
    @ExcelProperty({"机器类型"})
    @ApiModelProperty("机器类型")
    private String deviceTypeName;
    @ExcelProperty({"保养项目"})
    @ApiModelProperty("保养项目")
    private String projectName;
    @ExcelProperty(value = {"上次保养日期"}, index = RegionCache.VILLAGE_LEVEL)
    @ApiModelProperty("上次保养日期")
    private String preMaintainTime;
    @ExcelProperty({"保养周期"})
    @ApiModelProperty("保养周期")
    private Integer intervalTime;
    @ExcelProperty({"下次保养日期"})
    @ApiModelProperty("下次保养日期")
    private String maintainDate;
 
    public void setCode(final String code) {
        this.code = code;
    }
 
    public void setDeviceCode(final String deviceCode) {
        this.deviceCode = deviceCode;
    }
 
    public void setDeviceName(final String deviceName) {
        this.deviceName = deviceName;
    }
 
    public void setDeviceTypeName(final String deviceTypeName) {
        this.deviceTypeName = deviceTypeName;
    }
 
    public void setProjectName(final String projectName) {
        this.projectName = projectName;
    }
 
    public void setPreMaintainTime(final String preMaintainTime) {
        this.preMaintainTime = preMaintainTime;
    }
 
    public void setIntervalTime(final Integer intervalTime) {
        this.intervalTime = intervalTime;
    }
 
    public void setMaintainDate(final String maintainDate) {
        this.maintainDate = maintainDate;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof MaintainPlanExcel) {
            MaintainPlanExcel other = (MaintainPlanExcel) o;
            if (other.canEqual(this)) {
                Object this$intervalTime = getIntervalTime();
                Object other$intervalTime = other.getIntervalTime();
                if (this$intervalTime == null) {
                    if (other$intervalTime != null) {
                        return false;
                    }
                } else if (!this$intervalTime.equals(other$intervalTime)) {
                    return false;
                }
                Object this$code = getCode();
                Object other$code = other.getCode();
                if (this$code == null) {
                    if (other$code != null) {
                        return false;
                    }
                } else if (!this$code.equals(other$code)) {
                    return false;
                }
                Object this$deviceCode = getDeviceCode();
                Object other$deviceCode = other.getDeviceCode();
                if (this$deviceCode == null) {
                    if (other$deviceCode != null) {
                        return false;
                    }
                } else if (!this$deviceCode.equals(other$deviceCode)) {
                    return false;
                }
                Object this$deviceName = getDeviceName();
                Object other$deviceName = other.getDeviceName();
                if (this$deviceName == null) {
                    if (other$deviceName != null) {
                        return false;
                    }
                } else if (!this$deviceName.equals(other$deviceName)) {
                    return false;
                }
                Object this$deviceTypeName = getDeviceTypeName();
                Object other$deviceTypeName = other.getDeviceTypeName();
                if (this$deviceTypeName == null) {
                    if (other$deviceTypeName != null) {
                        return false;
                    }
                } else if (!this$deviceTypeName.equals(other$deviceTypeName)) {
                    return false;
                }
                Object this$projectName = getProjectName();
                Object other$projectName = other.getProjectName();
                if (this$projectName == null) {
                    if (other$projectName != null) {
                        return false;
                    }
                } else if (!this$projectName.equals(other$projectName)) {
                    return false;
                }
                Object this$preMaintainTime = getPreMaintainTime();
                Object other$preMaintainTime = other.getPreMaintainTime();
                if (this$preMaintainTime == null) {
                    if (other$preMaintainTime != null) {
                        return false;
                    }
                } else if (!this$preMaintainTime.equals(other$preMaintainTime)) {
                    return false;
                }
                Object this$maintainDate = getMaintainDate();
                Object other$maintainDate = other.getMaintainDate();
                return this$maintainDate == null ? other$maintainDate == null : this$maintainDate.equals(other$maintainDate);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof MaintainPlanExcel;
    }
 
    public int hashCode() {
        Object $intervalTime = getIntervalTime();
        int result = (1 * 59) + ($intervalTime == null ? 43 : $intervalTime.hashCode());
        Object $code = getCode();
        int result2 = (result * 59) + ($code == null ? 43 : $code.hashCode());
        Object $deviceCode = getDeviceCode();
        int result3 = (result2 * 59) + ($deviceCode == null ? 43 : $deviceCode.hashCode());
        Object $deviceName = getDeviceName();
        int result4 = (result3 * 59) + ($deviceName == null ? 43 : $deviceName.hashCode());
        Object $deviceTypeName = getDeviceTypeName();
        int result5 = (result4 * 59) + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode());
        Object $projectName = getProjectName();
        int result6 = (result5 * 59) + ($projectName == null ? 43 : $projectName.hashCode());
        Object $preMaintainTime = getPreMaintainTime();
        int result7 = (result6 * 59) + ($preMaintainTime == null ? 43 : $preMaintainTime.hashCode());
        Object $maintainDate = getMaintainDate();
        return (result7 * 59) + ($maintainDate == null ? 43 : $maintainDate.hashCode());
    }
 
    public String toString() {
        return "MaintainPlanExcel(code=" + getCode() + ", deviceCode=" + getDeviceCode() + ", deviceName=" + getDeviceName() + ", deviceTypeName=" + getDeviceTypeName() + ", projectName=" + getProjectName() + ", preMaintainTime=" + getPreMaintainTime() + ", intervalTime=" + getIntervalTime() + ", maintainDate=" + getMaintainDate() + ")";
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getDeviceCode() {
        return this.deviceCode;
    }
 
    public String getDeviceName() {
        return this.deviceName;
    }
 
    public String getDeviceTypeName() {
        return this.deviceTypeName;
    }
 
    public String getProjectName() {
        return this.projectName;
    }
 
    public String getPreMaintainTime() {
        return this.preMaintainTime;
    }
 
    public Integer getIntervalTime() {
        return this.intervalTime;
    }
 
    public String getMaintainDate() {
        return this.maintainDate;
    }
}