Helius
2022-05-27 4351e71d782741143a98f86f6648acd16689165f
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
package com.matrix.system.shopXcx.bean;
 
import com.matrix.core.pojo.EntityDTO;
import com.matrix.core.anotations.Extend;
 
import java.util.List;
 
/**
 * @description 商品属性管理
 * @author pengliang
 * @date 2019-06-04 16:10
 */
public class ShopProductAttribute  extends EntityDTO{
    @Extend
    private static final long serialVersionUID = 1L; 
 
    
    /**
     * 主键
     */
    private Integer  attrId;
            
    
    /**
     * 父级Id
     */
    private Integer  parentId;
            
    
    /**
     * 属性名称
     */
    private String  attrName;
            
    
    /**
     * 图片路径
     */
    private String  attrUrl;
            
    
    /**
     * 属性编码
     */
    private String  attrCode;
            
    
    /**
     * 备注
     */
    private String  attrMark;
 
    /**
     * 排序
     */
    private Integer sort;
 
    /**
     * 店铺ID
     */
    private Long shopId;
    private Long companyId;
    public Long getCompanyId() {
        return companyId;
    }
 
    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }
    @Extend
    private List<ShopProductAttribute> child;
 
    /**
     * 属性子集
     */
    @Extend
    private List<ShopProductAttribute> shopProductAttributeList;
 
    public List<ShopProductAttribute> getShopProductAttributeList() {
        return shopProductAttributeList;
    }
 
    public void setShopProductAttributeList(List<ShopProductAttribute> shopProductAttributeList) {
        this.shopProductAttributeList=shopProductAttributeList;
    }
 
    public Integer getAttrId() {
        return attrId;
    }
       
       public void setAttrId(Integer attrId) {
        this.attrId=attrId;
    }
       
 
    public Integer getParentId() {
        return parentId;
    }
       
       public void setParentId(Integer parentId) {
        this.parentId=parentId;
    }
       
 
    public String getAttrName() {
        return attrName;
    }
       
       public void setAttrName(String attrName) {
        this.attrName=attrName;
    }
       
 
    public String getAttrUrl() {
        return attrUrl;
    }
       
       public void setAttrUrl(String attrUrl) {
        this.attrUrl=attrUrl;
    }
       
 
    public String getAttrCode() {
        return attrCode;
    }
       
       public void setAttrCode(String attrCode) {
        this.attrCode=attrCode;
    }
       
 
    public String getAttrMark() {
        return attrMark;
    }
       
       public void setAttrMark(String attrMark) {
        this.attrMark=attrMark;
    }
 
    public Integer getSort() {
        return sort;
    }
 
    public void setSort(Integer sort) {
        this.sort = sort;
    }
 
    public List<ShopProductAttribute> getChild() {
        return child;
    }
 
    public void setChild(List<ShopProductAttribute> child) {
        this.child = child;
    }
 
    public Long getShopId() {
        return shopId;
    }
 
    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }
 
    @Override
    public boolean equals(Object obj) {
        //这里以attrId为判定标准。
        return attrId.equals(((ShopProductAttribute) obj).getAttrId());
    }
}