package com.sckw.report.model.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.sckw.excel.annotation.ExcelContext;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ExcelContext(fileName = "销售报表", sheetName = "销售数据")
@Schema(description = "销售报表数据")
public class SalesReportVO {

    /**
     * 序号
     */
    @ExcelProperty(value = "序号", index = 0)
    @Schema(description = "序号")
    private Integer serialNumber;

    /**
     * 客户名称
     */
    @ExcelProperty(value = "客户名称", index = 1)
    @Schema(description = "客户名称")
    private String entName;

    /**
     * 商品名称
     */
    @ExcelProperty(value = "商品名称", index = 2)
    @Schema(description = "商品名称")
    private String goodsName;

    /**
     * 销售数量（吨）
     */
    @ExcelProperty(value = "销售数量（吨）", index = 3)
    @Schema(description = "销售数量（吨）")
    private BigDecimal salesQuantity;

    /**
     * 销售平均单价（元/吨）
     */
    @ExcelProperty(value = "销售平均单价（元/吨）", index = 4)
    @Schema(description = "销售平均单价（元/吨）")
    private BigDecimal averagePrice;

    /**
     * 销售额（元）
     */
    @ExcelProperty(value = "本月销售额（元）", index = 5)
    @Schema(description = "本月销售额（元）")
    private BigDecimal salesAmount;

    /**
     * 累计销售数量（吨）
     */
    @ExcelProperty(value = "累计销售数量（吨）", index = 6)
    @Schema(description = "累计销售数量（吨）")
    private BigDecimal totalSalesQuantity;

    /**
     * 累计平均销售单价（元/吨）
     */
    @ExcelProperty(value = "累计平均销售单价（元/吨）", index = 7)
    @Schema(description = "累计平均销售单价（元/吨）")
    private BigDecimal totalAveragePrice;

    /**
     * 累计销售额（元）
     */
    @ExcelProperty(value = "累计销售额（元）", index = 8)
    @Schema(description = "累计销售额（元）")
    private BigDecimal totalSalesAmount;
}
