package com.czg.order.vo;

import cn.idev.excel.annotation.ExcelIgnore;
import cn.idev.excel.annotation.ExcelProperty;
import cn.idev.excel.annotation.write.style.ColumnWidth;
import com.alibaba.fastjson2.annotation.JSONField;
import com.pig4cloud.plugin.excel.annotation.ExcelLine;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 销量统计明细
 * @author tankaikai
 * @since 2025-03-07 16:22
 */
@NoArgsConstructor
@Data
@ColumnWidth(30)
public class SaleSummaryInfoVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 导入时候回显行号
     */
    @ExcelLine
    @ExcelIgnore
    @JSONField(serialize = false)
    private Long lineNum;
    /**
     * 商品分类
     */
    @ExcelProperty("商品分类")
    private String categoryName;
    /**
     * 商品名称
     */
    @ExcelProperty("商品名称")
    private String productName;
    /**
     * 销量
     */
    @ExcelProperty("销量")
    private BigDecimal saleCount;
    /**
     * 销售金额
     */
    @ExcelProperty("销售金额")
    private BigDecimal saleAmount;
    /**
     * 退单量
     */
    @ExcelProperty("退单量")
    private BigDecimal refundCount;
    /**
     * 退单金额
     */
    @ExcelProperty("退单金额")
    private BigDecimal refundAmount;
}
