package com.tmerclub.cloud.supplier.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 导出供应商余额
 * @author TRACK
 */
public class SupplierWalletLogExcelVO implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * excel 信息
     */
    public static final String EXCEL_NAME = "供应商结算明细表";
    /**
     * 哪一行开始导出
     */
    public static final int MERGE_ROW_INDEX = 2;
    /**
     * 需要合并的列数组
     */
    public static final int[] MERGE_COLUMN_INDEX = {};

    @ExcelProperty({"供应商结算明细表", "序号"})
    private String seq;

    @ExcelProperty({"供应商结算明细表", "供应商名称"})
    private String supplierName;

    /**
     * @see com.tmerclub.cloud.supplier.constant.SupplierWalletAmountType
     */
    @ExcelProperty({"供应商结算明细表", "金额类型"})
    private String amountType;

    @Schema(description = "商家收支类型 0支出 1收入")
    @ExcelProperty({"供应商结算明细表", "收支类型"})
    private String ioType;

    @ExcelProperty({"供应商结算明细表", "改变金额"})
    private String changeAmount;

    @ExcelProperty({"供应商结算明细表", "订单编号"})
    private String orderId;

    @ExcelProperty({"供应商结算明细表", "退款编号"})
    private String refundId;

    @ExcelProperty({"供应商结算明细表", "操作金额"})
    private String userAmount;

    @ExcelProperty({"供应商结算明细表", "平台优惠金额"})
    private String platformAmount;

    @ExcelProperty({"供应商结算明细表", "分销金额"})
    private String distributionAmount;

    @ExcelProperty({"供应商结算明细表", "平台佣金"})
    private String platformCommission;

    @ExcelProperty({"供应商结算明细表", "资金变化原因"})
    private String reasonStr;

    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty({"供应商结算明细表", "创建时间"})
    private Date createTime;

    public String getSeq() {
        return seq;
    }

    public void setSeq(String seq) {
        this.seq = seq;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getAmountType() {
        return amountType;
    }

    public void setAmountType(String amountType) {
        this.amountType = amountType;
    }

    public String getIoType() {
        return ioType;
    }

    public void setIoType(String ioType) {
        this.ioType = ioType;
    }

    public String getChangeAmount() {
        return changeAmount;
    }

    public void setChangeAmount(String changeAmount) {
        this.changeAmount = changeAmount;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getRefundId() {
        return refundId;
    }

    public void setRefundId(String refundId) {
        this.refundId = refundId;
    }

    public String getUserAmount() {
        return userAmount;
    }

    public void setUserAmount(String userAmount) {
        this.userAmount = userAmount;
    }

    public String getPlatformAmount() {
        return platformAmount;
    }

    public void setPlatformAmount(String platformAmount) {
        this.platformAmount = platformAmount;
    }

    public String getDistributionAmount() {
        return distributionAmount;
    }

    public void setDistributionAmount(String distributionAmount) {
        this.distributionAmount = distributionAmount;
    }

    public String getPlatformCommission() {
        return platformCommission;
    }

    public void setPlatformCommission(String platformCommission) {
        this.platformCommission = platformCommission;
    }

    public String getReasonStr() {
        return reasonStr;
    }

    public void setReasonStr(String reasonStr) {
        this.reasonStr = reasonStr;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ShopWalletLogExcelVO{" +
                "seq='" + seq + '\'' +
                ", shopName='" + supplierName + '\'' +
                ", amountType=" + amountType +
                ", ioType=" + ioType +
                ", changeAmount=" + changeAmount +
                ", orderId=" + orderId +
                ", refundId=" + refundId +
                ", userAmount=" + userAmount +
                ", platformAmount=" + platformAmount +
                ", distributionAmount=" + distributionAmount +
                ", platformCommission=" + platformCommission +
                ", reasonStr='" + reasonStr + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
