package com.ghy.goods.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品
 *
 * @author clunt
 */
@Data
public class Goods extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "序号", cellType = Excel.ColumnType.NUMERIC)
    private Long goodsId;

    @Excel(name = "编码")
    private String goodsCode;

    @Excel(name = "部门id")
    private Long deptId;

    @Excel(name = "名称")
    private String goodsName;

    @Excel(name = "价格")
    private BigDecimal goodsPrice;

    @Excel(name = "优惠价")
    private BigDecimal discountsPrice;

    @Excel(name = "团购价")
    private BigDecimal groupPrice;

    /**
     * 岗位排序
     */
    @Excel(name = "商品排序", cellType = Excel.ColumnType.NUMERIC)
    private Integer goodsSort;

    @Excel(name = "类别id")
    private Long deptGoodsCategoryId;

    @Excel(name = "商品图片", cellType = Excel.ColumnType.IMAGE)
    private String goodsImgUrl;

    @Excel(name = "商品视频", cellType = Excel.ColumnType.STRING)
    private String goodsVideoUrl;

    @Excel(name = "商品库存，-1则表示无限制", cellType = Excel.ColumnType.NUMERIC)
    private Integer goodsNumber;

    /**
     * 状态（0上架 1下架 2删除）
     */
    @Excel(name = "状态", readConverterExp = "0=上架,1=下架,2删除")
    private Integer status;
}
