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;
import java.util.List;
import java.util.Map;

/**
 * 商品
 *
 * @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;

    private String goodsDesc;

    private String goodsUnit;

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

    @Excel(name = "归属师傅", cellType = Excel.ColumnType.NUMERIC)
    private Long workerId;

    @Excel(name = "类别id,必须是关联到系统的第三级目录")
    private Long deptGoodsCategoryId;

    private List<Long> deptGoodsCategoryIds;

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

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

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

    @Excel(name = "区域Id", cellType = Excel.ColumnType.NUMERIC)
    private Long areaId;

    private List<GoodsArea> goodsAreaList;

    private Map<Integer, List<GoodsImgs>> goodsImgsMap;

    private List<GoodsImgs> goodsImgsList;

    private List<GoodsStandard> goodsStandardList;
}
