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
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.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import com.qianwen.core.tool.node.INode;
import com.qianwen.smartman.modules.system.vo.ChartSelect;
 
@ApiModel(value = "ProductVo对象", description = "产品信息")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/ProductVO.class */
public class ProductVO implements Serializable, INode<ProductVO>, ChartSelect {
    @ApiModelProperty("所属租户")
    @Size(max = 12, message = "所属租户长度不能超过12")
    private String tenantId;
    @NotBlank(message = "产品编号不能为空")
    @ApiModelProperty("产品编号")
    @Size(max = 128, message = "产品编号长度不能超过128")
    private String code;
    @ApiModelProperty("产品名称")
    @Size(max = 255, message = "产品名称长度不能超过255")
    private String name;
    @ApiModelProperty(value = "上级产品ID", dataType = "java.lang.String")
    private Long parentId;
    @ApiModelProperty(value = "产品类型", dataType = "java.lang.String")
    private Long typeId;
    @ApiModelProperty("计量单位")
    @Size(max = 10, message = "计量单位长度不能超过10")
    private String unit;
    @ApiModelProperty("规格型号")
    @Size(max = 255, message = "规格型号长度不能超过255")
    private String standardModel;
    @ApiModelProperty("产品描述")
    @Size(max = 255, message = "产品描述长度不能超过255")
    private String description;
    @ApiModelProperty("产品文档")
    @Size(max = 65535, message = "产品文档长度不能超过65535")
    private String documents;
    @ApiModelProperty(value = "产品ID", dataType = "java.lang.String")
    private Long id;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("上级产品名称")
    private String parentName;
    @ApiModelProperty("产品类型名称")
    private String typeName;
    @ApiModelProperty("上级产品编号")
    private String parentCode;
    @ApiModelProperty("直接父级状态")
    private Integer parentStatus;
    @ApiModelProperty("扩展字段")
    private String extendField;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ProductVO> children;
 
    public void setTenantId(final String tenantId) {
        this.tenantId = tenantId;
    }
 
    public void setCode(final String code) {
        this.code = code;
    }
 
    public void setName(final String name) {
        this.name = name;
    }
 
    public void setParentId(final Long parentId) {
        this.parentId = parentId;
    }
 
    public void setTypeId(final Long typeId) {
        this.typeId = typeId;
    }
 
    public void setUnit(final String unit) {
        this.unit = unit;
    }
 
    public void setStandardModel(final String standardModel) {
        this.standardModel = standardModel;
    }
 
    public void setDescription(final String description) {
        this.description = description;
    }
 
    public void setDocuments(final String documents) {
        this.documents = documents;
    }
 
    public void setId(final Long id) {
        this.id = id;
    }
 
    public void setStatus(final Integer status) {
        this.status = status;
    }
 
    public void setParentName(final String parentName) {
        this.parentName = parentName;
    }
 
    public void setTypeName(final String typeName) {
        this.typeName = typeName;
    }
 
    public void setParentCode(final String parentCode) {
        this.parentCode = parentCode;
    }
 
    public void setParentStatus(final Integer parentStatus) {
        this.parentStatus = parentStatus;
    }
 
    public void setExtendField(final String extendField) {
        this.extendField = extendField;
    }
 
    public void setChildren(final List<ProductVO> children) {
        this.children = children;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof ProductVO) {
            ProductVO other = (ProductVO) o;
            if (other.canEqual(this)) {
                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$typeId = getTypeId();
                Object other$typeId = other.getTypeId();
                if (this$typeId == null) {
                    if (other$typeId != null) {
                        return false;
                    }
                } else if (!this$typeId.equals(other$typeId)) {
                    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$status = getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }
                Object this$parentStatus = getParentStatus();
                Object other$parentStatus = other.getParentStatus();
                if (this$parentStatus == null) {
                    if (other$parentStatus != null) {
                        return false;
                    }
                } else if (!this$parentStatus.equals(other$parentStatus)) {
                    return false;
                }
                Object this$tenantId = getTenantId();
                Object other$tenantId = other.getTenantId();
                if (this$tenantId == null) {
                    if (other$tenantId != null) {
                        return false;
                    }
                } else if (!this$tenantId.equals(other$tenantId)) {
                    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$name = getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name != null) {
                        return false;
                    }
                } else if (!this$name.equals(other$name)) {
                    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$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$description = getDescription();
                Object other$description = other.getDescription();
                if (this$description == null) {
                    if (other$description != null) {
                        return false;
                    }
                } else if (!this$description.equals(other$description)) {
                    return false;
                }
                Object this$documents = getDocuments();
                Object other$documents = other.getDocuments();
                if (this$documents == null) {
                    if (other$documents != null) {
                        return false;
                    }
                } else if (!this$documents.equals(other$documents)) {
                    return false;
                }
                Object this$parentName = getParentName();
                Object other$parentName = other.getParentName();
                if (this$parentName == null) {
                    if (other$parentName != null) {
                        return false;
                    }
                } else if (!this$parentName.equals(other$parentName)) {
                    return false;
                }
                Object this$typeName = getTypeName();
                Object other$typeName = other.getTypeName();
                if (this$typeName == null) {
                    if (other$typeName != null) {
                        return false;
                    }
                } else if (!this$typeName.equals(other$typeName)) {
                    return false;
                }
                Object this$parentCode = getParentCode();
                Object other$parentCode = other.getParentCode();
                if (this$parentCode == null) {
                    if (other$parentCode != null) {
                        return false;
                    }
                } else if (!this$parentCode.equals(other$parentCode)) {
                    return false;
                }
                Object this$extendField = getExtendField();
                Object other$extendField = other.getExtendField();
                if (this$extendField == null) {
                    if (other$extendField != null) {
                        return false;
                    }
                } else if (!this$extendField.equals(other$extendField)) {
                    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 ProductVO;
    }
 
    public int hashCode() {
        Object $parentId = getParentId();
        int result = (1 * 59) + ($parentId == null ? 43 : $parentId.hashCode());
        Object $typeId = getTypeId();
        int result2 = (result * 59) + ($typeId == null ? 43 : $typeId.hashCode());
        Object $id = getId();
        int result3 = (result2 * 59) + ($id == null ? 43 : $id.hashCode());
        Object $status = getStatus();
        int result4 = (result3 * 59) + ($status == null ? 43 : $status.hashCode());
        Object $parentStatus = getParentStatus();
        int result5 = (result4 * 59) + ($parentStatus == null ? 43 : $parentStatus.hashCode());
        Object $tenantId = getTenantId();
        int result6 = (result5 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
        Object $code = getCode();
        int result7 = (result6 * 59) + ($code == null ? 43 : $code.hashCode());
        Object $name = getName();
        int result8 = (result7 * 59) + ($name == null ? 43 : $name.hashCode());
        Object $unit = getUnit();
        int result9 = (result8 * 59) + ($unit == null ? 43 : $unit.hashCode());
        Object $standardModel = getStandardModel();
        int result10 = (result9 * 59) + ($standardModel == null ? 43 : $standardModel.hashCode());
        Object $description = getDescription();
        int result11 = (result10 * 59) + ($description == null ? 43 : $description.hashCode());
        Object $documents = getDocuments();
        int result12 = (result11 * 59) + ($documents == null ? 43 : $documents.hashCode());
        Object $parentName = getParentName();
        int result13 = (result12 * 59) + ($parentName == null ? 43 : $parentName.hashCode());
        Object $typeName = getTypeName();
        int result14 = (result13 * 59) + ($typeName == null ? 43 : $typeName.hashCode());
        Object $parentCode = getParentCode();
        int result15 = (result14 * 59) + ($parentCode == null ? 43 : $parentCode.hashCode());
        Object $extendField = getExtendField();
        int result16 = (result15 * 59) + ($extendField == null ? 43 : $extendField.hashCode());
        Object $children = getChildren();
        return (result16 * 59) + ($children == null ? 43 : $children.hashCode());
    }
 
    public String toString() {
        return "ProductVO(tenantId=" + getTenantId() + ", code=" + getCode() + ", name=" + getName() + ", parentId=" + getParentId() + ", typeId=" + getTypeId() + ", unit=" + getUnit() + ", standardModel=" + getStandardModel() + ", description=" + getDescription() + ", documents=" + getDocuments() + ", id=" + getId() + ", status=" + getStatus() + ", parentName=" + getParentName() + ", typeName=" + getTypeName() + ", parentCode=" + getParentCode() + ", parentStatus=" + getParentStatus() + ", extendField=" + getExtendField() + ", children=" + getChildren() + ")";
    }
 
    public String getTenantId() {
        return this.tenantId;
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getName() {
        return this.name;
    }
 
    public Long getParentId() {
        return this.parentId;
    }
 
    public Long getTypeId() {
        return this.typeId;
    }
 
    public String getUnit() {
        return this.unit;
    }
 
    public String getStandardModel() {
        return this.standardModel;
    }
 
    public String getDescription() {
        return this.description;
    }
 
    public String getDocuments() {
        return this.documents;
    }
 
    public Long getId() {
        return this.id;
    }
 
    public Integer getStatus() {
        return this.status;
    }
 
    public String getParentName() {
        return this.parentName;
    }
 
    public String getTypeName() {
        return this.typeName;
    }
 
    public String getParentCode() {
        return this.parentCode;
    }
 
    public Integer getParentStatus() {
        return this.parentStatus;
    }
 
    public String getExtendField() {
        return this.extendField;
    }
 
    public List<ProductVO> getChildren() {
        if (this.children == null) {
            this.children = new ArrayList();
        }
        return this.children;
    }
 
    @Override // org.springblade.modules.system.vo.ChartSelect
    public String getLabel() {
        return getName();
    }
 
    @Override // org.springblade.modules.system.vo.ChartSelect
    public String getValue() {
        return getId() + "";
    }
}