PC
2024-03-31 608f20e0d5d8f95d9bbb917e95e2913682deb77d
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
package com.qianwen.smartman.modules.cps.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.time.LocalDateTime;
import java.util.List;
import com.qianwen.smartman.common.constant.DateConstant;
import com.qianwen.smartman.common.constant.MachineConstant;
import com.qianwen.smartman.modules.cps.dto.DeviceSimpleDTO;
import com.qianwen.smartman.modules.cps.entity.MaintainProject;
import com.qianwen.smartman.modules.cps.entity.MaintainProjectItem;
import com.qianwen.smartman.modules.notify.dto.NotifyBusinessSendDTO;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/MaintainPlanBatchVO.class */
public class MaintainPlanBatchVO {
    @ApiModelProperty(name = MachineConstant.TYPE_MACHINE)
    private DeviceSimpleDTO deviceSimpleDTO;
    @ApiModelProperty("保养项目")
    private MaintainProject maintainProject;
    @ApiModelProperty("保养项目保养项")
    private List<MaintainProjectItem> maintainProjectItemList;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @ApiModelProperty("上次保养时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
    private LocalDateTime lastTime;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("保养性质")
    private Integer maintainNature;
    @ApiModelProperty(value = "保养负责人id", dataType = "java.lang.String")
    private Long maintainUserId;
    @ApiModelProperty("保养负责人名称")
    private String maintainUserName;
    @ApiModelProperty("业务消息发送")
    NotifyBusinessSendDTO notifyBusinessSend;
 
    /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/MaintainPlanBatchVO$MaintainPlanBatchVOBuilder.class */
    public static class MaintainPlanBatchVOBuilder {
        private DeviceSimpleDTO deviceSimpleDTO;
        private MaintainProject maintainProject;
        private List<MaintainProjectItem> maintainProjectItemList;
        private LocalDateTime lastTime;
        private String remark;
        private Integer maintainNature;
        private Long maintainUserId;
        private String maintainUserName;
        private NotifyBusinessSendDTO notifyBusinessSend;
 
        MaintainPlanBatchVOBuilder() {
        }
 
        public MaintainPlanBatchVOBuilder deviceSimpleDTO(final DeviceSimpleDTO deviceSimpleDTO) {
            this.deviceSimpleDTO = deviceSimpleDTO;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder maintainProject(final MaintainProject maintainProject) {
            this.maintainProject = maintainProject;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder maintainProjectItemList(final List<MaintainProjectItem> maintainProjectItemList) {
            this.maintainProjectItemList = maintainProjectItemList;
            return this;
        }
 
        @JsonDeserialize(using = LocalDateTimeDeserializer.class)
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
        public MaintainPlanBatchVOBuilder lastTime(final LocalDateTime lastTime) {
            this.lastTime = lastTime;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder remark(final String remark) {
            this.remark = remark;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder maintainNature(final Integer maintainNature) {
            this.maintainNature = maintainNature;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder maintainUserId(final Long maintainUserId) {
            this.maintainUserId = maintainUserId;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder maintainUserName(final String maintainUserName) {
            this.maintainUserName = maintainUserName;
            return this;
        }
 
        public MaintainPlanBatchVOBuilder notifyBusinessSend(final NotifyBusinessSendDTO notifyBusinessSend) {
            this.notifyBusinessSend = notifyBusinessSend;
            return this;
        }
 
        public MaintainPlanBatchVO build() {
            return new MaintainPlanBatchVO(this.deviceSimpleDTO, this.maintainProject, this.maintainProjectItemList, this.lastTime, this.remark, this.maintainNature, this.maintainUserId, this.maintainUserName, this.notifyBusinessSend);
        }
 
        public String toString() {
            return "MaintainPlanBatchVO.MaintainPlanBatchVOBuilder(deviceSimpleDTO=" + this.deviceSimpleDTO + ", maintainProject=" + this.maintainProject + ", maintainProjectItemList=" + this.maintainProjectItemList + ", lastTime=" + this.lastTime + ", remark=" + this.remark + ", maintainNature=" + this.maintainNature + ", maintainUserId=" + this.maintainUserId + ", maintainUserName=" + this.maintainUserName + ", notifyBusinessSend=" + this.notifyBusinessSend + ")";
        }
    }
 
    public void setDeviceSimpleDTO(final DeviceSimpleDTO deviceSimpleDTO) {
        this.deviceSimpleDTO = deviceSimpleDTO;
    }
 
    public void setMaintainProject(final MaintainProject maintainProject) {
        this.maintainProject = maintainProject;
    }
 
    public void setMaintainProjectItemList(final List<MaintainProjectItem> maintainProjectItemList) {
        this.maintainProjectItemList = maintainProjectItemList;
    }
 
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = DateConstant.PATTERN_DATE_TIME, timezone = "GMT+8")
    public void setLastTime(final LocalDateTime lastTime) {
        this.lastTime = lastTime;
    }
 
    public void setRemark(final String remark) {
        this.remark = remark;
    }
 
    public void setMaintainNature(final Integer maintainNature) {
        this.maintainNature = maintainNature;
    }
 
    public void setMaintainUserId(final Long maintainUserId) {
        this.maintainUserId = maintainUserId;
    }
 
    public void setMaintainUserName(final String maintainUserName) {
        this.maintainUserName = maintainUserName;
    }
 
    public void setNotifyBusinessSend(final NotifyBusinessSendDTO notifyBusinessSend) {
        this.notifyBusinessSend = notifyBusinessSend;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof MaintainPlanBatchVO) {
            MaintainPlanBatchVO other = (MaintainPlanBatchVO) o;
            if (other.canEqual(this)) {
                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$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$deviceSimpleDTO = getDeviceSimpleDTO();
                Object other$deviceSimpleDTO = other.getDeviceSimpleDTO();
                if (this$deviceSimpleDTO == null) {
                    if (other$deviceSimpleDTO != null) {
                        return false;
                    }
                } else if (!this$deviceSimpleDTO.equals(other$deviceSimpleDTO)) {
                    return false;
                }
                Object this$maintainProject = getMaintainProject();
                Object other$maintainProject = other.getMaintainProject();
                if (this$maintainProject == null) {
                    if (other$maintainProject != null) {
                        return false;
                    }
                } else if (!this$maintainProject.equals(other$maintainProject)) {
                    return false;
                }
                Object this$maintainProjectItemList = getMaintainProjectItemList();
                Object other$maintainProjectItemList = other.getMaintainProjectItemList();
                if (this$maintainProjectItemList == null) {
                    if (other$maintainProjectItemList != null) {
                        return false;
                    }
                } else if (!this$maintainProjectItemList.equals(other$maintainProjectItemList)) {
                    return false;
                }
                Object this$lastTime = getLastTime();
                Object other$lastTime = other.getLastTime();
                if (this$lastTime == null) {
                    if (other$lastTime != null) {
                        return false;
                    }
                } else if (!this$lastTime.equals(other$lastTime)) {
                    return false;
                }
                Object this$remark = getRemark();
                Object other$remark = other.getRemark();
                if (this$remark == null) {
                    if (other$remark != null) {
                        return false;
                    }
                } else if (!this$remark.equals(other$remark)) {
                    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$notifyBusinessSend = getNotifyBusinessSend();
                Object other$notifyBusinessSend = other.getNotifyBusinessSend();
                return this$notifyBusinessSend == null ? other$notifyBusinessSend == null : this$notifyBusinessSend.equals(other$notifyBusinessSend);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof MaintainPlanBatchVO;
    }
 
    public int hashCode() {
        Object $maintainNature = getMaintainNature();
        int result = (1 * 59) + ($maintainNature == null ? 43 : $maintainNature.hashCode());
        Object $maintainUserId = getMaintainUserId();
        int result2 = (result * 59) + ($maintainUserId == null ? 43 : $maintainUserId.hashCode());
        Object $deviceSimpleDTO = getDeviceSimpleDTO();
        int result3 = (result2 * 59) + ($deviceSimpleDTO == null ? 43 : $deviceSimpleDTO.hashCode());
        Object $maintainProject = getMaintainProject();
        int result4 = (result3 * 59) + ($maintainProject == null ? 43 : $maintainProject.hashCode());
        Object $maintainProjectItemList = getMaintainProjectItemList();
        int result5 = (result4 * 59) + ($maintainProjectItemList == null ? 43 : $maintainProjectItemList.hashCode());
        Object $lastTime = getLastTime();
        int result6 = (result5 * 59) + ($lastTime == null ? 43 : $lastTime.hashCode());
        Object $remark = getRemark();
        int result7 = (result6 * 59) + ($remark == null ? 43 : $remark.hashCode());
        Object $maintainUserName = getMaintainUserName();
        int result8 = (result7 * 59) + ($maintainUserName == null ? 43 : $maintainUserName.hashCode());
        Object $notifyBusinessSend = getNotifyBusinessSend();
        return (result8 * 59) + ($notifyBusinessSend == null ? 43 : $notifyBusinessSend.hashCode());
    }
 
    public String toString() {
        return "MaintainPlanBatchVO(deviceSimpleDTO=" + getDeviceSimpleDTO() + ", maintainProject=" + getMaintainProject() + ", maintainProjectItemList=" + getMaintainProjectItemList() + ", lastTime=" + getLastTime() + ", remark=" + getRemark() + ", maintainNature=" + getMaintainNature() + ", maintainUserId=" + getMaintainUserId() + ", maintainUserName=" + getMaintainUserName() + ", notifyBusinessSend=" + getNotifyBusinessSend() + ")";
    }
 
    MaintainPlanBatchVO(final DeviceSimpleDTO deviceSimpleDTO, final MaintainProject maintainProject, final List<MaintainProjectItem> maintainProjectItemList, final LocalDateTime lastTime, final String remark, final Integer maintainNature, final Long maintainUserId, final String maintainUserName, final NotifyBusinessSendDTO notifyBusinessSend) {
        this.deviceSimpleDTO = deviceSimpleDTO;
        this.maintainProject = maintainProject;
        this.maintainProjectItemList = maintainProjectItemList;
        this.lastTime = lastTime;
        this.remark = remark;
        this.maintainNature = maintainNature;
        this.maintainUserId = maintainUserId;
        this.maintainUserName = maintainUserName;
        this.notifyBusinessSend = notifyBusinessSend;
    }
 
    public static MaintainPlanBatchVOBuilder builder() {
        return new MaintainPlanBatchVOBuilder();
    }
 
    public DeviceSimpleDTO getDeviceSimpleDTO() {
        return this.deviceSimpleDTO;
    }
 
    public MaintainProject getMaintainProject() {
        return this.maintainProject;
    }
 
    public List<MaintainProjectItem> getMaintainProjectItemList() {
        return this.maintainProjectItemList;
    }
 
    public LocalDateTime getLastTime() {
        return this.lastTime;
    }
 
    public String getRemark() {
        return this.remark;
    }
 
    public Integer getMaintainNature() {
        return this.maintainNature;
    }
 
    public Long getMaintainUserId() {
        return this.maintainUserId;
    }
 
    public String getMaintainUserName() {
        return this.maintainUserName;
    }
 
    public NotifyBusinessSendDTO getNotifyBusinessSend() {
        return this.notifyBusinessSend;
    }
}