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

    @Excel(name = "客单价（万）",orderNum = "2",width = 15)
    private BigDecimal csmRate;

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

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

    @Excel(name = "成交户数",width = 10,orderNum = "4")
    private Integer csmCount;

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

    public void setCsmRate(BigDecimal csmRate) {
        this.csmRate = Util.calc10000(csmRate);
    }

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