package com.dk.mdm.model.report.product;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.dk.mdm.model.report.Util;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;


@Data
@Accessors(chain = true)
public class ProductDistribution {
    @Excel(name="序号",width = 10)
    private Integer kpiIndex;

    @Excel(name="品类名称",width = 35,orderNum = "1")
    private String specsName;

    @Excel(name="成交金额（万）",width = 15,orderNum = "2")
    private BigDecimal sumAmount;

    @Excel(name="成交数量",width = 15,orderNum = "3")
    private Integer sumCount;

    @Excel(name="数量占比",width = 15,orderNum = "4")
    private BigDecimal countRate;

    public void setSumAmount(BigDecimal sumAmount) {
        this.sumAmount = Util.calc10000(sumAmount);
    }
}
