yangys
2024-10-30 c27b939fa5fa6ce4d712f7e9ced2ad811d69d5ec
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
package com.qianwen.smartman.modules.smis.vo;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import javax.validation.constraints.NotNull;
import com.qianwen.smartman.common.constant.DateConstant;
 
public class MaintainRecordUpdateVO implements Serializable {
    private static final long serialVersionUID = 1;
    @NotNull(message = "保养记录Id不能为空")
    @ApiModelProperty(value = "保养记录Id", dataType = "java.lang.String")
    private Long id;
    @NotNull(message = "保养计划Id不能为空")
    @ApiModelProperty(value = "保养计划Id", dataType = "java.lang.String")
    private Long planId;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty("开始时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
    private LocalDateTime startTime;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty("结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
    private LocalDateTime endTime;
    @ApiModelProperty("是否延期(0:未延期;1:已延期)")
    private Integer isDelay;
    @ApiModelProperty("延期天数")
    private Integer delayDays;
    @ApiModelProperty(value = "保养负责人Id", dataType = "java.lang.String")
    private Long maintainUserId;
    @ApiModelProperty("保养负责人名称")
    private String maintainUserName;
    @ApiModelProperty("延期原因")
    private String delayReason;
    @ApiModelProperty("保养性质(1:厂内;2:委外)")
    private Integer maintainNature;
    @ApiModelProperty("保养性质(1:厂内;2:委外)")
    private String maintainNatureName;
    @NotNull(message = "保养记录保养项不能为空")
    @ApiModelProperty("保养记录保养项")
    private List<MaintainRecordItemAddVO> maintainRecordItemAddVOList;
    @ApiModelProperty("备品备件")
    private List<RepairRecordMaterialAddVO> RepairRecordMaterialAddVOList;
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setPlanId(final Long planId) {
        this.planId = planId;
    }
 
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
    public void setStartTime(final LocalDateTime startTime) {
        this.startTime = startTime;
    }
 
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
    public void setEndTime(final LocalDateTime endTime) {
        this.endTime = endTime;
    }
 
    public void setIsDelay(final Integer isDelay) {
        this.isDelay = isDelay;
    }
 
    public void setDelayDays(final Integer delayDays) {
        this.delayDays = delayDays;
    }
 
    public void setMaintainUserId(final Long maintainUserId) {
        this.maintainUserId = maintainUserId;
    }
 
    public void setMaintainUserName(final String maintainUserName) {
        this.maintainUserName = maintainUserName;
    }
 
    public void setDelayReason(final String delayReason) {
        this.delayReason = delayReason;
    }
 
    public void setMaintainNature(final Integer maintainNature) {
        this.maintainNature = maintainNature;
    }
 
    public void setMaintainNatureName(final String maintainNatureName) {
        this.maintainNatureName = maintainNatureName;
    }
 
    public void setMaintainRecordItemAddVOList(final List<MaintainRecordItemAddVO> maintainRecordItemAddVOList) {
        this.maintainRecordItemAddVOList = maintainRecordItemAddVOList;
    }
 
    public void setRepairRecordMaterialAddVOList(final List<RepairRecordMaterialAddVO> RepairRecordMaterialAddVOList) {
        this.RepairRecordMaterialAddVOList = RepairRecordMaterialAddVOList;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof MaintainRecordUpdateVO) {
            MaintainRecordUpdateVO other = (MaintainRecordUpdateVO) o;
            if (other.canEqual(this)) {
                Object this$id = getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }
                Object this$planId = getPlanId();
                Object other$planId = other.getPlanId();
                if (this$planId == null) {
                    if (other$planId != null) {
                        return false;
                    }
                } else if (!this$planId.equals(other$planId)) {
                    return false;
                }
                Object this$isDelay = getIsDelay();
                Object other$isDelay = other.getIsDelay();
                if (this$isDelay == null) {
                    if (other$isDelay != null) {
                        return false;
                    }
                } else if (!this$isDelay.equals(other$isDelay)) {
                    return false;
                }
                Object this$delayDays = getDelayDays();
                Object other$delayDays = other.getDelayDays();
                if (this$delayDays == null) {
                    if (other$delayDays != null) {
                        return false;
                    }
                } else if (!this$delayDays.equals(other$delayDays)) {
                    return false;
                }
                Object this$maintainUserId = getMaintainUserId();
                Object other$maintainUserId = other.getMaintainUserId();
                if (this$maintainUserId == null) {
                    if (other$maintainUserId != null) {
                        return false;
                    }
                } else if (!this$maintainUserId.equals(other$maintainUserId)) {
                    return false;
                }
                Object this$maintainNature = getMaintainNature();
                Object other$maintainNature = other.getMaintainNature();
                if (this$maintainNature == null) {
                    if (other$maintainNature != null) {
                        return false;
                    }
                } else if (!this$maintainNature.equals(other$maintainNature)) {
                    return false;
                }
                Object this$startTime = getStartTime();
                Object other$startTime = other.getStartTime();
                if (this$startTime == null) {
                    if (other$startTime != null) {
                        return false;
                    }
                } else if (!this$startTime.equals(other$startTime)) {
                    return false;
                }
                Object this$endTime = getEndTime();
                Object other$endTime = other.getEndTime();
                if (this$endTime == null) {
                    if (other$endTime != null) {
                        return false;
                    }
                } else if (!this$endTime.equals(other$endTime)) {
                    return false;
                }
                Object this$maintainUserName = getMaintainUserName();
                Object other$maintainUserName = other.getMaintainUserName();
                if (this$maintainUserName == null) {
                    if (other$maintainUserName != null) {
                        return false;
                    }
                } else if (!this$maintainUserName.equals(other$maintainUserName)) {
                    return false;
                }
                Object this$delayReason = getDelayReason();
                Object other$delayReason = other.getDelayReason();
                if (this$delayReason == null) {
                    if (other$delayReason != null) {
                        return false;
                    }
                } else if (!this$delayReason.equals(other$delayReason)) {
                    return false;
                }
                Object this$maintainNatureName = getMaintainNatureName();
                Object other$maintainNatureName = other.getMaintainNatureName();
                if (this$maintainNatureName == null) {
                    if (other$maintainNatureName != null) {
                        return false;
                    }
                } else if (!this$maintainNatureName.equals(other$maintainNatureName)) {
                    return false;
                }
                Object this$maintainRecordItemAddVOList = getMaintainRecordItemAddVOList();
                Object other$maintainRecordItemAddVOList = other.getMaintainRecordItemAddVOList();
                if (this$maintainRecordItemAddVOList == null) {
                    if (other$maintainRecordItemAddVOList != null) {
                        return false;
                    }
                } else if (!this$maintainRecordItemAddVOList.equals(other$maintainRecordItemAddVOList)) {
                    return false;
                }
                Object this$RepairRecordMaterialAddVOList = getRepairRecordMaterialAddVOList();
                Object other$RepairRecordMaterialAddVOList = other.getRepairRecordMaterialAddVOList();
                return this$RepairRecordMaterialAddVOList == null ? other$RepairRecordMaterialAddVOList == null : this$RepairRecordMaterialAddVOList.equals(other$RepairRecordMaterialAddVOList);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof MaintainRecordUpdateVO;
    }
 
    public int hashCode() {
        Object $id = getId();
        int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $planId = getPlanId();
        int result2 = (result * 59) + ($planId == null ? 43 : $planId.hashCode());
        Object $isDelay = getIsDelay();
        int result3 = (result2 * 59) + ($isDelay == null ? 43 : $isDelay.hashCode());
        Object $delayDays = getDelayDays();
        int result4 = (result3 * 59) + ($delayDays == null ? 43 : $delayDays.hashCode());
        Object $maintainUserId = getMaintainUserId();
        int result5 = (result4 * 59) + ($maintainUserId == null ? 43 : $maintainUserId.hashCode());
        Object $maintainNature = getMaintainNature();
        int result6 = (result5 * 59) + ($maintainNature == null ? 43 : $maintainNature.hashCode());
        Object $startTime = getStartTime();
        int result7 = (result6 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
        Object $endTime = getEndTime();
        int result8 = (result7 * 59) + ($endTime == null ? 43 : $endTime.hashCode());
        Object $maintainUserName = getMaintainUserName();
        int result9 = (result8 * 59) + ($maintainUserName == null ? 43 : $maintainUserName.hashCode());
        Object $delayReason = getDelayReason();
        int result10 = (result9 * 59) + ($delayReason == null ? 43 : $delayReason.hashCode());
        Object $maintainNatureName = getMaintainNatureName();
        int result11 = (result10 * 59) + ($maintainNatureName == null ? 43 : $maintainNatureName.hashCode());
        Object $maintainRecordItemAddVOList = getMaintainRecordItemAddVOList();
        int result12 = (result11 * 59) + ($maintainRecordItemAddVOList == null ? 43 : $maintainRecordItemAddVOList.hashCode());
        Object $RepairRecordMaterialAddVOList = getRepairRecordMaterialAddVOList();
        return (result12 * 59) + ($RepairRecordMaterialAddVOList == null ? 43 : $RepairRecordMaterialAddVOList.hashCode());
    }
 
    public String toString() {
        return "MaintainRecordUpdateVO(id=" + getId() + ", planId=" + getPlanId() + ", startTime=" + getStartTime() + ", endTime=" + getEndTime() + ", isDelay=" + getIsDelay() + ", delayDays=" + getDelayDays() + ", maintainUserId=" + getMaintainUserId() + ", maintainUserName=" + getMaintainUserName() + ", delayReason=" + getDelayReason() + ", maintainNature=" + getMaintainNature() + ", maintainNatureName=" + getMaintainNatureName() + ", maintainRecordItemAddVOList=" + getMaintainRecordItemAddVOList() + ", RepairRecordMaterialAddVOList=" + getRepairRecordMaterialAddVOList() + ")";
    }
 
    public Long getId() {
        return this.id;
    }
 
    public Long getPlanId() {
        return this.planId;
    }
 
    public LocalDateTime getStartTime() {
        return this.startTime;
    }
 
    public LocalDateTime getEndTime() {
        return this.endTime;
    }
 
    public Integer getIsDelay() {
        return this.isDelay;
    }
 
    public Integer getDelayDays() {
        return this.delayDays;
    }
 
    public Long getMaintainUserId() {
        return this.maintainUserId;
    }
 
    public String getMaintainUserName() {
        return this.maintainUserName;
    }
 
    public String getDelayReason() {
        return this.delayReason;
    }
 
    public Integer getMaintainNature() {
        return this.maintainNature;
    }
 
    public String getMaintainNatureName() {
        return this.maintainNatureName;
    }
 
    public List<MaintainRecordItemAddVO> getMaintainRecordItemAddVOList() {
        return this.maintainRecordItemAddVOList;
    }
 
    public List<RepairRecordMaterialAddVO> getRepairRecordMaterialAddVOList() {
        return this.RepairRecordMaterialAddVOList;
    }
}