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

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

//  @Excel(name="任务目标(万)",width = 15,orderNum = "3")
//  private BigDecimal kpiOrderAmount;
//
//  @Excel(name="完成率",width = 10,orderNum = "4")
//  private BigDecimal kpiOrderRate;

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

  @Excel(name="门店名称",width = 35,orderNum = "1")
  private String orgName;

//  public void setKpiOrderAmount(BigDecimal kpiOrderAmount) {
//    this.kpiOrderAmount = Util.calc10000(kpiOrderAmount);
//  }

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