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

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

    @Excel(name="序号",width = 10)
    private Integer kpiIndex;

    @Excel(name="业务员名称",width = 35,orderNum = "1")
    private String staffName;

    @Excel(name="收款金额（万）",width = 15,orderNum = "2")
    private BigDecimal repayAmount;

    @Excel(name="任务目标（万）",width = 15,orderNum = "3")
    private BigDecimal kpiRepayAmount;

    @Excel(name="完成率",width = 15,orderNum = "4")
    private BigDecimal kpiRepayRate;

    public void setRepayAmount(BigDecimal repayAmount) {
        this.repayAmount = Util.calc10000(repayAmount);
    }

    public void setKpiRepayAmount(BigDecimal kpiRepayAmount) {
        this.kpiRepayAmount = Util.calc10000(kpiRepayAmount);
    }

}
