package com.ghy.goods.domain;

import com.ghy.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * @author clunt
 * 分公司使用类目
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class DeptGoodsCategory extends GoodsCategory {

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

    @Excel(name = "分公司id", cellType = Excel.ColumnType.NUMERIC)
    private Long deptId;

    @Excel(name = "是否热门类目 0.不是,1.是", cellType = Excel.ColumnType.NUMERIC)
    private Integer isHot;

    @Excel(name = "一级分销扣点比例", cellType = Excel.ColumnType.STRING)
    private String oneRate;

    @Excel(name = "二级分销扣点比例", cellType = Excel.ColumnType.STRING)
    private String twoRate;

    @Excel(name = "三级分销扣点比例", cellType = Excel.ColumnType.STRING)
    private String threeRate;

    @Excel(name = "平台扣点", cellType = Excel.ColumnType.STRING)
    private String deptRate;

    @Excel(name = "平台固定扣金额", cellType = Excel.ColumnType.STRING)
    private BigDecimal deptMoney;

    @Excel(name = "截留扣点", cellType = Excel.ColumnType.STRING)
    private String retainRate;

    @Excel(name = "截留金额", cellType = Excel.ColumnType.STRING)
    private BigDecimal retainMoney;

    private Long parentCategoryId;

    private List<DeptGoodsCategory> child;

}
