package com.crm.rely.backend.model.dto.report;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.Date;

/**
 * 销售佣金报表
 *
 * @author y
 * @create 2022/5/5
 */
@Data
public class SalesCommissionReportListDto extends BaseRowModel {

    @ExcelProperty(value = "销售编号", index = 0)
    private String salesNo;

    @ExcelProperty(value = "销售姓名", index = 1)
    private String salesName;

    @ExcelProperty(value = "交易账户", index = 2)
    private Long login;

    @ExcelProperty(value = "账号归属", index = 3)
    private String ibNo;

    @ExcelProperty(value = "订单编号", index = 4)
    private Long order;

    @ExcelProperty(value = "平仓时间", index = 5, format = "yyyy-MM-dd HH:mm:ss")
    private Date closeTime;

    @ExcelProperty(value = "手数", index = 6)
    private Float volume;

    @ExcelProperty(value = "佣金", index = 7)
    private Float amount;

    public static SalesCommissionReportListDto getInstance(){
        SalesCommissionReportListDto dto = new SalesCommissionReportListDto();
        dto.setVolume(0F);
        dto.setAmount(0F);
        return dto;
    }

}
