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 = "分公司备注类目名称", cellType = Excel.ColumnType.STRING)
//    private String deptCategoryName;

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

    private String hotName;

    @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;


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

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

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

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

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

    @Excel(name = "平台*截留扣点", cellType = Excel.ColumnType.STRING)
    private String pcRetainRate;

    @Excel(name = "平台*截留金额", cellType = Excel.ColumnType.STRING)
    private BigDecimal pcRetainMoney;

    @Excel(name = "类别类型. 1.服务类 2.商品类", cellType = Excel.ColumnType.STRING)
    private Integer type;

    @Excel(name = "封面图片", cellType = Excel.ColumnType.STRING)
    private String cover;

    @Excel(name = "类别简称", cellType = Excel.ColumnType.STRING)
    private String simpleGoodsCategoryName;

    private Long parentCategoryId;

    private List<DeptGoodsCategory> child;

    private Boolean isAllNode;

    private List<String> hotCategoryImgs;

    // 热门类目图片
    private String categoryUrl;

    private String hotCategoryName;

    // 是否需要保险 1.需要
    private Integer isSure;

    // 是否需要证书 1.需要
    private Integer isCert;

    private String pcInsuranceIds;

    private String shopInsuranceIds;

    private Long customerId;

    private Integer isSetting;

    @Excel(name = "服务类目ID", cellType = Excel.ColumnType.NUMERIC)
    private Long serviceCategoryId;  // 服务类目ID

    @Excel(name = "服务类目名称", cellType = Excel.ColumnType.STRING)
    private String serviceCategoryName;  // 服务类目名称

    @Excel(name = "倒计时小时数", cellType = Excel.ColumnType.NUMERIC)
    private Integer countdownHours;  // 倒计时小时数
}
