package com.macro.mall.dto;

import com.macro.mall.model.*;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

/**
 * 创建和修改商品时使用的参数
 * Created by macro on 2018/4/26.
 */
public class PmsProductParam extends PmsProduct{
    @ApiModelProperty("商品阶梯价格设置")
    private List<PmsProductLadder> productLadderList;
    @ApiModelProperty("商品满减价格设置")
    private List<PmsProductFullReduction> productFullReductionList;
    @ApiModelProperty("商品会员价格设置")
    private List<PmsMemberPrice> memberPriceList;
    @ApiModelProperty("商品的sku库存信息")
    private List<PmsSkuStock> skuStockList;
    @ApiModelProperty("商品参数及自定义规格属性")
    private List<PmsProductAttributeValue> productAttributeValueList;
    @ApiModelProperty("专题和商品关系")
    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;
    }
}

@@ -100,16 +100,69 @@
 roperty;
+%0Aimport lombok.Data;%0Aimport lombok.EqualsAndHashCode;
 %0A%0Aimport
@@ -238,16 +238,60 @@
 26.%0A */%0A
+@Data%0A@EqualsAndHashCode(callSuper = false)%0A
 public c
@@ -930,24 +930,24 @@
 %E9%80%89%E4%B8%93%E5%8C%BA%E5%92%8C%E5%95%86%E5%93%81%E7%9A%84%E5%85%B3%E7%B3%BB%22)%0A
+
     private 
@@ -1021,1943 +1021,7 @@
 ist;
-%0A%0A    public List%3CPmsProductLadder%3E getProductLadderList() %7B%0A        return productLadderList;%0A    %7D%0A%0A    public void setProductLadderList(List%3CPmsProductLadder%3E productLadderList) %7B%0A        this.productLadderList = productLadderList;%0A    %7D%0A%0A    public List%3CPmsProductFullReduction%3E getProductFullReductionList() %7B%0A        return productFullReductionList;%0A    %7D%0A%0A    public void setProductFullReductionList(List%3CPmsProductFullReduction%3E productFullReductionList) %7B%0A        this.productFullReductionList = productFullReductionList;%0A    %7D%0A%0A    public List%3CPmsMemberPrice%3E getMemberPriceList() %7B%0A        return memberPriceList;%0A    %7D%0A%0A    public void setMemberPriceList(List%3CPmsMemberPrice%3E memberPriceList) %7B%0A        this.memberPriceList = memberPriceList;%0A    %7D%0A%0A    public List%3CPmsSkuStock%3E getSkuStockList() %7B%0A        return skuStockList;%0A    %7D%0A%0A    public void setSkuStockList(List%3CPmsSkuStock%3E skuStockList) %7B%0A        this.skuStockList = skuStockList;%0A    %7D%0A%0A    public List%3CPmsProductAttributeValue%3E getProductAttributeValueList() %7B%0A        return productAttributeValueList;%0A    %7D%0A%0A    public void setProductAttributeValueList(List%3CPmsProductAttributeValue%3E productAttributeValueList) %7B%0A        this.productAttributeValueList = productAttributeValueList;%0A    %7D%0A%0A    public List%3CCmsSubjectProductRelation%3E getSubjectProductRelationList() %7B%0A        return subjectProductRelationList;%0A    %7D%0A%0A    public void setSubjectProductRelationList(List%3CCmsSubjectProductRelation%3E subjectProductRelationList) %7B%0A        this.subjectProductRelationList = subjectProductRelationList;%0A    %7D%0A%0A    public List%3CCmsPrefrenceAreaProductRelation%3E getPrefrenceAreaProductRelationList() %7B%0A        return prefrenceAreaProductRelationList;%0A    %7D%0A%0A    public void setPrefrenceAreaProductRelationList(List%3CCmsPrefrenceAreaProductRelation%3E prefrenceAreaProductRelationList) %7B%0A        this.prefrenceAreaProductRelationList = prefrenceAreaProductRelationList;%0A    %7D
 %0A%7D%0A

Update PmsProductParam.java