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
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
package com.qianwen.smartman.modules.smis.vo;
 
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
 
public class RepairRecordMaterialAddVO implements Serializable {
    @JsonIgnore
    @ApiModelProperty(value = "维修记录id", dataType = "java.lang.String")
    private Long recordId;
    @ApiModelProperty(value = "物料id", dataType = "java.lang.String")
    private Long materialId;
    @ApiModelProperty("物料编码")
    private String materialCode;
    @ApiModelProperty("物料名称")
    private String materialName;
    @ApiModelProperty("数量")
    private Integer recordNumber;
    @JsonIgnore
    @ApiModelProperty("数据来源: 1 维修记录单  2. 保养记录")
    private Integer bizType;
    @JsonIgnore
    @ApiModelProperty(value = "机器id", dataType = "java.lang.String")
    private Long deviceId;
    @JsonIgnore
    @ApiModelProperty(value = "维修负责人id", dataType = "java.lang.String")
    private Long userId;
    @JsonIgnore
    @ApiModelProperty("维修负责人名称")
    private String userName;
    @JsonIgnore
    @ApiModelProperty("维修记录结束时间")
    private Date usageTime;
 
    @JsonIgnore
    public RepairRecordMaterialAddVO setRecordId(final Long recordId) {
        this.recordId = recordId;
        return this;
    }
 
    public RepairRecordMaterialAddVO setMaterialId(final Long materialId) {
        this.materialId = materialId;
        return this;
    }
 
    public RepairRecordMaterialAddVO setMaterialCode(final String materialCode) {
        this.materialCode = materialCode;
        return this;
    }
 
    public RepairRecordMaterialAddVO setMaterialName(final String materialName) {
        this.materialName = materialName;
        return this;
    }
 
    public RepairRecordMaterialAddVO setRecordNumber(final Integer recordNumber) {
        this.recordNumber = recordNumber;
        return this;
    }
 
    @JsonIgnore
    public RepairRecordMaterialAddVO setBizType(final Integer bizType) {
        this.bizType = bizType;
        return this;
    }
 
    @JsonIgnore
    public RepairRecordMaterialAddVO setDeviceId(final Long deviceId) {
        this.deviceId = deviceId;
        return this;
    }
 
    @JsonIgnore
    public RepairRecordMaterialAddVO setUserId(final Long userId) {
        this.userId = userId;
        return this;
    }
 
    @JsonIgnore
    public RepairRecordMaterialAddVO setUserName(final String userName) {
        this.userName = userName;
        return this;
    }
 
    @JsonIgnore
    public RepairRecordMaterialAddVO setUsageTime(final Date usageTime) {
        this.usageTime = usageTime;
        return this;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof RepairRecordMaterialAddVO) {
            RepairRecordMaterialAddVO other = (RepairRecordMaterialAddVO) o;
            if (other.canEqual(this)) {
                Object this$recordId = getRecordId();
                Object other$recordId = other.getRecordId();
                if (this$recordId == null) {
                    if (other$recordId != null) {
                        return false;
                    }
                } else if (!this$recordId.equals(other$recordId)) {
                    return false;
                }
                Object this$materialId = getMaterialId();
                Object other$materialId = other.getMaterialId();
                if (this$materialId == null) {
                    if (other$materialId != null) {
                        return false;
                    }
                } else if (!this$materialId.equals(other$materialId)) {
                    return false;
                }
                Object this$recordNumber = getRecordNumber();
                Object other$recordNumber = other.getRecordNumber();
                if (this$recordNumber == null) {
                    if (other$recordNumber != null) {
                        return false;
                    }
                } else if (!this$recordNumber.equals(other$recordNumber)) {
                    return false;
                }
                Object this$bizType = getBizType();
                Object other$bizType = other.getBizType();
                if (this$bizType == null) {
                    if (other$bizType != null) {
                        return false;
                    }
                } else if (!this$bizType.equals(other$bizType)) {
                    return false;
                }
                Object this$deviceId = getDeviceId();
                Object other$deviceId = other.getDeviceId();
                if (this$deviceId == null) {
                    if (other$deviceId != null) {
                        return false;
                    }
                } else if (!this$deviceId.equals(other$deviceId)) {
                    return false;
                }
                Object this$userId = getUserId();
                Object other$userId = other.getUserId();
                if (this$userId == null) {
                    if (other$userId != null) {
                        return false;
                    }
                } else if (!this$userId.equals(other$userId)) {
                    return false;
                }
                Object this$materialCode = getMaterialCode();
                Object other$materialCode = other.getMaterialCode();
                if (this$materialCode == null) {
                    if (other$materialCode != null) {
                        return false;
                    }
                } else if (!this$materialCode.equals(other$materialCode)) {
                    return false;
                }
                Object this$materialName = getMaterialName();
                Object other$materialName = other.getMaterialName();
                if (this$materialName == null) {
                    if (other$materialName != null) {
                        return false;
                    }
                } else if (!this$materialName.equals(other$materialName)) {
                    return false;
                }
                Object this$userName = getUserName();
                Object other$userName = other.getUserName();
                if (this$userName == null) {
                    if (other$userName != null) {
                        return false;
                    }
                } else if (!this$userName.equals(other$userName)) {
                    return false;
                }
                Object this$usageTime = getUsageTime();
                Object other$usageTime = other.getUsageTime();
                return this$usageTime == null ? other$usageTime == null : this$usageTime.equals(other$usageTime);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof RepairRecordMaterialAddVO;
    }
 
    public int hashCode() {
        Object $recordId = getRecordId();
        int result = (1 * 59) + ($recordId == null ? 43 : $recordId.hashCode());
        Object $materialId = getMaterialId();
        int result2 = (result * 59) + ($materialId == null ? 43 : $materialId.hashCode());
        Object $recordNumber = getRecordNumber();
        int result3 = (result2 * 59) + ($recordNumber == null ? 43 : $recordNumber.hashCode());
        Object $bizType = getBizType();
        int result4 = (result3 * 59) + ($bizType == null ? 43 : $bizType.hashCode());
        Object $deviceId = getDeviceId();
        int result5 = (result4 * 59) + ($deviceId == null ? 43 : $deviceId.hashCode());
        Object $userId = getUserId();
        int result6 = (result5 * 59) + ($userId == null ? 43 : $userId.hashCode());
        Object $materialCode = getMaterialCode();
        int result7 = (result6 * 59) + ($materialCode == null ? 43 : $materialCode.hashCode());
        Object $materialName = getMaterialName();
        int result8 = (result7 * 59) + ($materialName == null ? 43 : $materialName.hashCode());
        Object $userName = getUserName();
        int result9 = (result8 * 59) + ($userName == null ? 43 : $userName.hashCode());
        Object $usageTime = getUsageTime();
        return (result9 * 59) + ($usageTime == null ? 43 : $usageTime.hashCode());
    }
 
    public String toString() {
        return "RepairRecordMaterialAddVO(recordId=" + getRecordId() + ", materialId=" + getMaterialId() + ", materialCode=" + getMaterialCode() + ", materialName=" + getMaterialName() + ", recordNumber=" + getRecordNumber() + ", bizType=" + getBizType() + ", deviceId=" + getDeviceId() + ", userId=" + getUserId() + ", userName=" + getUserName() + ", usageTime=" + getUsageTime() + ")";
    }
 
    public Long getRecordId() {
        return this.recordId;
    }
 
    public Long getMaterialId() {
        return this.materialId;
    }
 
    public String getMaterialCode() {
        return this.materialCode;
    }
 
    public String getMaterialName() {
        return this.materialName;
    }
 
    public Integer getRecordNumber() {
        return this.recordNumber;
    }
 
    public Integer getBizType() {
        return this.bizType;
    }
 
    public Long getDeviceId() {
        return this.deviceId;
    }
 
    public Long getUserId() {
        return this.userId;
    }
 
    public String getUserName() {
        return this.userName;
    }
 
    public Date getUsageTime() {
        return this.usageTime;
    }
}