package com.gree.mall.manager.bean.goods;

import com.gree.mall.manager.plus.entity.Goods;
import com.gree.mall.manager.plus.entity.GoodsSpec;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@ApiModel
@Data
public class GoodsSpecBean extends Goods {

    @ApiModelProperty(value = "商品规格id")
    private String goodsSpecId;

    @ApiModelProperty(value = "规格值")
    private String specValue;

    @ApiModelProperty(value = "图片")
    private String specImgUrl;

    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "销售价")
    private BigDecimal price;

    @ApiModelProperty(value = "划线价格")
    private BigDecimal orgPrice;

    @ApiModelProperty(value = "分销金额")
    private BigDecimal shareAmount;

    @ApiModelProperty(value = "分销比例")
    private Double sharePercent;

    @ApiModelProperty(value = "内部分销金额")
    private BigDecimal innerShareAmount;

    @ApiModelProperty(value = "内部分销比列")
    private Double innerSharePercent;

    @ApiModelProperty(value = "库存")
    private Integer stockNum;

    @ApiModelProperty(value = "条形码")
    private String barCode;

    @ApiModelProperty("商品规格列表")
    private List<GoodsSpec> goodsSpecs;

}
