Browse Source

Update PmsProductParam.java

macro 5 years ago
parent
commit
e63f19f819
1 changed files with 4 additions and 56 deletions
  1. 4 56
      mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java

+ 4 - 56
mall-admin/src/main/java/com/macro/mall/dto/PmsProductParam.java

@@ -2,6 +2,8 @@ package com.macro.mall.dto;
 
 import com.macro.mall.model.*;
 import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
 
 import java.util.List;
 
@@ -9,6 +11,8 @@ import java.util.List;
  * 创建和修改商品时使用的参数
  * Created by macro on 2018/4/26.
  */
+@Data
+@EqualsAndHashCode(callSuper = false)
 public class PmsProductParam extends PmsProduct{
     @ApiModelProperty("商品阶梯价格设置")
     private List<PmsProductLadder> productLadderList;
@@ -24,60 +28,4 @@ public class PmsProductParam extends PmsProduct{
     private List<CmsSubjectProductRelation> subjectProductRelationList;
     @ApiModelProperty("优选专区和商品的关系")
     private List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList;
-
-    public List<PmsProductLadder> getProductLadderList() {
-        return productLadderList;
-    }
-
-    public void setProductLadderList(List<PmsProductLadder> productLadderList) {
-        this.productLadderList = productLadderList;
-    }
-
-    public List<PmsProductFullReduction> getProductFullReductionList() {
-        return productFullReductionList;
-    }
-
-    public void setProductFullReductionList(List<PmsProductFullReduction> productFullReductionList) {
-        this.productFullReductionList = productFullReductionList;
-    }
-
-    public List<PmsMemberPrice> getMemberPriceList() {
-        return memberPriceList;
-    }
-
-    public void setMemberPriceList(List<PmsMemberPrice> memberPriceList) {
-        this.memberPriceList = memberPriceList;
-    }
-
-    public List<PmsSkuStock> getSkuStockList() {
-        return skuStockList;
-    }
-
-    public void setSkuStockList(List<PmsSkuStock> skuStockList) {
-        this.skuStockList = skuStockList;
-    }
-
-    public List<PmsProductAttributeValue> getProductAttributeValueList() {
-        return productAttributeValueList;
-    }
-
-    public void setProductAttributeValueList(List<PmsProductAttributeValue> productAttributeValueList) {
-        this.productAttributeValueList = productAttributeValueList;
-    }
-
-    public List<CmsSubjectProductRelation> getSubjectProductRelationList() {
-        return subjectProductRelationList;
-    }
-
-    public void setSubjectProductRelationList(List<CmsSubjectProductRelation> subjectProductRelationList) {
-        this.subjectProductRelationList = subjectProductRelationList;
-    }
-
-    public List<CmsPrefrenceAreaProductRelation> getPrefrenceAreaProductRelationList() {
-        return prefrenceAreaProductRelationList;
-    }
-
-    public void setPrefrenceAreaProductRelationList(List<CmsPrefrenceAreaProductRelation> prefrenceAreaProductRelationList) {
-        this.prefrenceAreaProductRelationList = prefrenceAreaProductRelationList;
-    }
 }