yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
package com.qianwen.smartman.modules.cps.vo;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.qianwen.core.tool.node.INode;
 
@ApiModel(value = "BomMaterialDetailVO对象", description = "bom物料详情")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/BomMaterialDetailVO.class */
public class BomMaterialDetailVO implements INode<BomMaterialDetailVO> {
    @ApiModelProperty(value = "bom版本id", dataType = "java.lang.String")
    private Long versionId;
    @NotNull(message = "物料Id不能为空")
    @ApiModelProperty(value = "物料id", dataType = "java.lang.String")
    private Long materialId;
    @ApiModelProperty(value = "父级Id", dataType = "java.lang.String")
    private Long parentId;
    @ApiModelProperty("allPath")
    @Size(max = 255, message = "allPath长度不能超过255")
    private String allPath;
    @ApiModelProperty("备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remark;
    @ApiModelProperty(value = "主键", dataType = "java.lang.String")
    private Long id;
    @ApiModelProperty("物料编码")
    private String materialCode;
    @ApiModelProperty("物料名称")
    private String materialName;
    @ApiModelProperty("规格")
    private String standardModel;
    @ApiModelProperty("计量单位")
    private String unit;
    @ApiModelProperty(value = "物料类型", dataType = "java.lang.String")
    private Long materialTypeId;
    @ApiModelProperty("物料类型名称")
    private String materialTypeName;
    @ApiModelProperty("物料性质")
    private Integer property;
    @ApiModelProperty("物料性质")
    private String propertyName;
    @ApiModelProperty("是否必检:0-非必检,1-必检")
    private Integer isMustCheck;
    @ApiModelProperty("额定库存")
    private BigDecimal lowerLimit;
    @ApiModelProperty("安全库存")
    private BigDecimal upperLimit;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<BomMaterialDetailVO> children;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Boolean hasChildren;
 
    public void setVersionId(final Long versionId) {
        this.versionId = versionId;
    }
 
    public void setMaterialId(final Long materialId) {
        this.materialId = materialId;
    }
 
    public void setParentId(final Long parentId) {
        this.parentId = parentId;
    }
 
    public void setAllPath(final String allPath) {
        this.allPath = allPath;
    }
 
    public void setRemark(final String remark) {
        this.remark = remark;
    }
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setMaterialCode(final String materialCode) {
        this.materialCode = materialCode;
    }
 
    public void setMaterialName(final String materialName) {
        this.materialName = materialName;
    }
 
    public void setStandardModel(final String standardModel) {
        this.standardModel = standardModel;
    }
 
    public void setUnit(final String unit) {
        this.unit = unit;
    }
 
    public void setMaterialTypeId(final Long materialTypeId) {
        this.materialTypeId = materialTypeId;
    }
 
    public void setMaterialTypeName(final String materialTypeName) {
        this.materialTypeName = materialTypeName;
    }
 
    public void setProperty(final Integer property) {
        this.property = property;
    }
 
    public void setPropertyName(final String propertyName) {
        this.propertyName = propertyName;
    }
 
    public void setIsMustCheck(final Integer isMustCheck) {
        this.isMustCheck = isMustCheck;
    }
 
    public void setLowerLimit(final BigDecimal lowerLimit) {
        this.lowerLimit = lowerLimit;
    }
 
    public void setUpperLimit(final BigDecimal upperLimit) {
        this.upperLimit = upperLimit;
    }
 
    public void setChildren(final List<BomMaterialDetailVO> children) {
        this.children = children;
    }
 
    public void setHasChildren(final Boolean hasChildren) {
        this.hasChildren = hasChildren;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof BomMaterialDetailVO) {
            BomMaterialDetailVO other = (BomMaterialDetailVO) o;
            if (other.canEqual(this)) {
                Object this$versionId = getVersionId();
                Object other$versionId = other.getVersionId();
                if (this$versionId == null) {
                    if (other$versionId != null) {
                        return false;
                    }
                } else if (!this$versionId.equals(other$versionId)) {
                    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$parentId = getParentId();
                Object other$parentId = other.getParentId();
                if (this$parentId == null) {
                    if (other$parentId != null) {
                        return false;
                    }
                } else if (!this$parentId.equals(other$parentId)) {
                    return false;
                }
                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$materialTypeId = getMaterialTypeId();
                Object other$materialTypeId = other.getMaterialTypeId();
                if (this$materialTypeId == null) {
                    if (other$materialTypeId != null) {
                        return false;
                    }
                } else if (!this$materialTypeId.equals(other$materialTypeId)) {
                    return false;
                }
                Object this$property = getProperty();
                Object other$property = other.getProperty();
                if (this$property == null) {
                    if (other$property != null) {
                        return false;
                    }
                } else if (!this$property.equals(other$property)) {
                    return false;
                }
                Object this$isMustCheck = getIsMustCheck();
                Object other$isMustCheck = other.getIsMustCheck();
                if (this$isMustCheck == null) {
                    if (other$isMustCheck != null) {
                        return false;
                    }
                } else if (!this$isMustCheck.equals(other$isMustCheck)) {
                    return false;
                }
                Object this$hasChildren = getHasChildren();
                Object other$hasChildren = other.getHasChildren();
                if (this$hasChildren == null) {
                    if (other$hasChildren != null) {
                        return false;
                    }
                } else if (!this$hasChildren.equals(other$hasChildren)) {
                    return false;
                }
                Object this$allPath = getAllPath();
                Object other$allPath = other.getAllPath();
                if (this$allPath == null) {
                    if (other$allPath != null) {
                        return false;
                    }
                } else if (!this$allPath.equals(other$allPath)) {
                    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$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$standardModel = getStandardModel();
                Object other$standardModel = other.getStandardModel();
                if (this$standardModel == null) {
                    if (other$standardModel != null) {
                        return false;
                    }
                } else if (!this$standardModel.equals(other$standardModel)) {
                    return false;
                }
                Object this$unit = getUnit();
                Object other$unit = other.getUnit();
                if (this$unit == null) {
                    if (other$unit != null) {
                        return false;
                    }
                } else if (!this$unit.equals(other$unit)) {
                    return false;
                }
                Object this$materialTypeName = getMaterialTypeName();
                Object other$materialTypeName = other.getMaterialTypeName();
                if (this$materialTypeName == null) {
                    if (other$materialTypeName != null) {
                        return false;
                    }
                } else if (!this$materialTypeName.equals(other$materialTypeName)) {
                    return false;
                }
                Object this$propertyName = getPropertyName();
                Object other$propertyName = other.getPropertyName();
                if (this$propertyName == null) {
                    if (other$propertyName != null) {
                        return false;
                    }
                } else if (!this$propertyName.equals(other$propertyName)) {
                    return false;
                }
                Object this$lowerLimit = getLowerLimit();
                Object other$lowerLimit = other.getLowerLimit();
                if (this$lowerLimit == null) {
                    if (other$lowerLimit != null) {
                        return false;
                    }
                } else if (!this$lowerLimit.equals(other$lowerLimit)) {
                    return false;
                }
                Object this$upperLimit = getUpperLimit();
                Object other$upperLimit = other.getUpperLimit();
                if (this$upperLimit == null) {
                    if (other$upperLimit != null) {
                        return false;
                    }
                } else if (!this$upperLimit.equals(other$upperLimit)) {
                    return false;
                }
                Object this$children = getChildren();
                Object other$children = other.getChildren();
                return this$children == null ? other$children == null : this$children.equals(other$children);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof BomMaterialDetailVO;
    }
 
    public int hashCode() {
        Object $versionId = getVersionId();
        int result = (1 * 59) + ($versionId == null ? 43 : $versionId.hashCode());
        Object $materialId = getMaterialId();
        int result2 = (result * 59) + ($materialId == null ? 43 : $materialId.hashCode());
        Object $parentId = getParentId();
        int result3 = (result2 * 59) + ($parentId == null ? 43 : $parentId.hashCode());
        Object $id = getId();
        int result4 = (result3 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $materialTypeId = getMaterialTypeId();
        int result5 = (result4 * 59) + ($materialTypeId == null ? 43 : $materialTypeId.hashCode());
        Object $property = getProperty();
        int result6 = (result5 * 59) + ($property == null ? 43 : $property.hashCode());
        Object $isMustCheck = getIsMustCheck();
        int result7 = (result6 * 59) + ($isMustCheck == null ? 43 : $isMustCheck.hashCode());
        Object $hasChildren = getHasChildren();
        int result8 = (result7 * 59) + ($hasChildren == null ? 43 : $hasChildren.hashCode());
        Object $allPath = getAllPath();
        int result9 = (result8 * 59) + ($allPath == null ? 43 : $allPath.hashCode());
        Object $remark = getRemark();
        int result10 = (result9 * 59) + ($remark == null ? 43 : $remark.hashCode());
        Object $materialCode = getMaterialCode();
        int result11 = (result10 * 59) + ($materialCode == null ? 43 : $materialCode.hashCode());
        Object $materialName = getMaterialName();
        int result12 = (result11 * 59) + ($materialName == null ? 43 : $materialName.hashCode());
        Object $standardModel = getStandardModel();
        int result13 = (result12 * 59) + ($standardModel == null ? 43 : $standardModel.hashCode());
        Object $unit = getUnit();
        int result14 = (result13 * 59) + ($unit == null ? 43 : $unit.hashCode());
        Object $materialTypeName = getMaterialTypeName();
        int result15 = (result14 * 59) + ($materialTypeName == null ? 43 : $materialTypeName.hashCode());
        Object $propertyName = getPropertyName();
        int result16 = (result15 * 59) + ($propertyName == null ? 43 : $propertyName.hashCode());
        Object $lowerLimit = getLowerLimit();
        int result17 = (result16 * 59) + ($lowerLimit == null ? 43 : $lowerLimit.hashCode());
        Object $upperLimit = getUpperLimit();
        int result18 = (result17 * 59) + ($upperLimit == null ? 43 : $upperLimit.hashCode());
        Object $children = getChildren();
        return (result18 * 59) + ($children == null ? 43 : $children.hashCode());
    }
 
    public String toString() {
        return "BomMaterialDetailVO(versionId=" + getVersionId() + ", materialId=" + getMaterialId() + ", parentId=" + getParentId() + ", allPath=" + getAllPath() + ", remark=" + getRemark() + ", id=" + getId() + ", materialCode=" + getMaterialCode() + ", materialName=" + getMaterialName() + ", standardModel=" + getStandardModel() + ", unit=" + getUnit() + ", materialTypeId=" + getMaterialTypeId() + ", materialTypeName=" + getMaterialTypeName() + ", property=" + getProperty() + ", propertyName=" + getPropertyName() + ", isMustCheck=" + getIsMustCheck() + ", lowerLimit=" + getLowerLimit() + ", upperLimit=" + getUpperLimit() + ", children=" + getChildren() + ", hasChildren=" + getHasChildren() + ")";
    }
 
    public Long getVersionId() {
        return this.versionId;
    }
 
    public Long getMaterialId() {
        return this.materialId;
    }
 
    public Long getParentId() {
        return this.parentId;
    }
 
    public String getAllPath() {
        return this.allPath;
    }
 
    public String getRemark() {
        return this.remark;
    }
 
    public Long getId() {
        return this.id;
    }
 
    public String getMaterialCode() {
        return this.materialCode;
    }
 
    public String getMaterialName() {
        return this.materialName;
    }
 
    public String getStandardModel() {
        return this.standardModel;
    }
 
    public String getUnit() {
        return this.unit;
    }
 
    public Long getMaterialTypeId() {
        return this.materialTypeId;
    }
 
    public String getMaterialTypeName() {
        return this.materialTypeName;
    }
 
    public Integer getProperty() {
        return this.property;
    }
 
    public String getPropertyName() {
        return this.propertyName;
    }
 
    public Integer getIsMustCheck() {
        return this.isMustCheck;
    }
 
    public BigDecimal getLowerLimit() {
        return this.lowerLimit;
    }
 
    public BigDecimal getUpperLimit() {
        return this.upperLimit;
    }
 
    public Boolean getHasChildren() {
        return this.hasChildren;
    }
 
    public List<BomMaterialDetailVO> getChildren() {
        if (this.children == null) {
            this.children = new ArrayList();
        }
        return this.children;
    }
}