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

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 Offer {
    @Excel(name="序号",width = 10)
    private Integer kpiIndex;

    @Excel(name="客户来源",width = 35,orderNum = "1")
    private String fromName;

    @Excel(name="报价金额（万）",width = 15,orderNum = "2")
    private BigDecimal orderAmount;

    @Excel(name="报价客户",width = 15,orderNum = "3")
    private Integer customerQty;

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

    public void setOrderAmount(BigDecimal orderAmount) {
        this.orderAmount = Util.calc10000(orderAmount);
    }
}
