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
package com.qianwen.smartman.modules.smis.vo;
 
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
 
public class SynchronizedProductMaterialVO implements Serializable {
    private static final long serialVersionUID = 1;
    @NotEmpty(message = "产品不能为空")
    @ApiModelProperty("产品编码名称集合")
    private List<ProductVO> productList;
    @NotNull(message = "物料类型Id不能为空")
    @ApiModelProperty(value = "物料类型Id", required = true, dataType = "java.lang.String")
    private Long materialTypeId;
    @ApiModelProperty("是否强制删除")
    private Integer isDeleted;
 
    public void setProductList(final List<ProductVO> productList) {
        this.productList = productList;
    }
 
    public void setMaterialTypeId(final Long materialTypeId) {
        this.materialTypeId = materialTypeId;
    }
 
    public void setIsDeleted(final Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof SynchronizedProductMaterialVO) {
            SynchronizedProductMaterialVO other = (SynchronizedProductMaterialVO) o;
            if (other.canEqual(this)) {
                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$isDeleted = getIsDeleted();
                Object other$isDeleted = other.getIsDeleted();
                if (this$isDeleted == null) {
                    if (other$isDeleted != null) {
                        return false;
                    }
                } else if (!this$isDeleted.equals(other$isDeleted)) {
                    return false;
                }
                Object this$productList = getProductList();
                Object other$productList = other.getProductList();
                return this$productList == null ? other$productList == null : this$productList.equals(other$productList);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof SynchronizedProductMaterialVO;
    }
 
    public int hashCode() {
        Object $materialTypeId = getMaterialTypeId();
        int result = (1 * 59) + ($materialTypeId == null ? 43 : $materialTypeId.hashCode());
        Object $isDeleted = getIsDeleted();
        int result2 = (result * 59) + ($isDeleted == null ? 43 : $isDeleted.hashCode());
        Object $productList = getProductList();
        return (result2 * 59) + ($productList == null ? 43 : $productList.hashCode());
    }
 
    public String toString() {
        return "SynchronizedProductMaterialVO(productList=" + getProductList() + ", materialTypeId=" + getMaterialTypeId() + ", isDeleted=" + getIsDeleted() + ")";
    }
 
    public List<ProductVO> getProductList() {
        return this.productList;
    }
 
    public Long getMaterialTypeId() {
        return this.materialTypeId;
    }
 
    public Integer getIsDeleted() {
        return this.isDeleted;
    }
}