| 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()); | 
|     } | 
| } |