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

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 orgRanking {


    @Excel(name="排行",width = 10,orderNum = "2")
    private Integer  kpiIndex;


    @Excel(name="部门名称",width = 35,orderNum = "3")
    private String kpiName;

    @Excel(name="销售金额(万)",width = 35,orderNum = "4")
    private BigDecimal sumAmount;

    @Excel(name="毛利(万)",width = 15,orderNum = "6")
    private BigDecimal grossProfit;

    @Excel(name="毛利率",width = 10,orderNum = "7"  ,suffix = "%")
    private BigDecimal grossProfitMargin;

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

    public void setGrossProfit(BigDecimal grossProfit) {
        this.grossProfit = Util.calc10000(grossProfit);
    }
}
