package com.ruoyi.excel.wecom.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 部门统计数据导出VO
 * 用于EasyExcel导出部门统计数据
 */
@Data
public class DepartmentStatisticsDataVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("日期")
    @Excel(name ="日期",dateFormat = "yyyy-MM-dd")
    @DateTimeFormat("yyyy-MM-dd")
    @ColumnWidth(15)
    private Date statDate;

    @ExcelProperty("部门路径")
    @Excel(name ="部门路径")
    @ColumnWidth(40)
    private String departmentPath;

    @ExcelProperty("当日总承接数")
    @Excel(name ="当日总承接数")
    @ColumnWidth(15)
    private Integer dailyTotalAccepted;

    @ExcelProperty("当日总成单数")
    @Excel(name ="当日总成单数")
    @ColumnWidth(15)
    private Integer dailyTotalOrders;

    @ExcelProperty("当日转化率")
    @Excel(name ="当日转化率")
    @ColumnWidth(15)
    private BigDecimal dailyConversionRate;

    @ExcelProperty("及时单占比（当日）")
    @Excel(name ="及时单占比（当日）")
    @ColumnWidth(15)
    private BigDecimal dailyTimelyOrderRatio;

    @ExcelProperty("非及时单占比（当日")
    @Excel(name ="非及时单占比（当日")
    @ColumnWidth(15)
    private BigDecimal dailyNonTimelyOrderRatio;

    @ExcelProperty("家长成单率（当日")
    @Excel(name ="家长成单率（当日")
    @ColumnWidth(15)
    private BigDecimal dailyParentOrderRate;

    @ExcelProperty("学生成单率（当日")
    @Excel(name ="学生成单率（当日")
    @ColumnWidth(15)
    private BigDecimal dailyStudentOrderRate;
}
