package com.xiaoniu.system.order.storeorder.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaoniu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * @Author haoxuyang
 * @Date 2024/11/3 19:35
 */
@Data
@Schema(description = "平台财务统计响应参数VO")
public class FinancialOrderListVO {
    @Schema(description = "商品名称")
    @Excel(name = "商品名称")
    private String goodsName;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "订单编号")
    @Excel(name = "订单编号")
    private String orderNo;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "支付时间")
    @Excel(name = "支付时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @Schema(description = "订单类型")
    @Excel(name = "订单类型")
    private String orderType;

    @Schema(description = "商品个数")
    @Excel(name = "商品个数")
    private Integer goodsNum;

    @Schema(description = "商品原价")
    @Excel(name = "商品原价")
    private BigDecimal goodsPrice;

    @Schema(description = "支付金额")
    @Excel(name = "支付金额")
    private BigDecimal paymentAmount;

    @Schema(description = "店铺名称")
    @Excel(name = "店铺名称")
    private String storeName;

    @Schema(description = "订单状态 0待支付 1待发货 2待使用 3已完成 4待评价 5退款/售后 6已结算 7未成团 8已成团 9进行中 10已评论 90已取消")
    @Excel(name = "订单状态", readConverterExp = " 0=待支付,1=待发货,2=待使用,3=已完成,4=待评价,5=退款/售后,6=已结算,7=未成团,8=已成团,9=进行中,90=已取消")
    private String status;

    @Schema(description = "分佣比例")
    @Excel(name = "分佣比例")
    private Double commissionRatio;

    @Schema(description = "门店收入")
    @Excel(name = "门店收入")
    private BigDecimal storeRevenue;

    @Schema(description = "平台收入")
    @Excel(name = "平台收入")
    private BigDecimal platformRevenue;
}
