package com.jeequan.jeepay.core.model.export;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;

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

/**
 * <p>
 * 转账订单表
 * </p>
 *
 * @author [mybatis plus generator]
 * @since 2021-08-11
 */
@Data
public class MchTransferOrderExportExcel {

    /**
     * 转账订单号
     */
    @Excel(name = "转账订单号")
    private String transferId;

    /**
     * 应用ID
     */
    @Excel(name = "应用ID")
    private String appId;

    /**
     * 商户订单号
     */
    @Excel(name = "商户订单号")
    private String mchOrderNo;

    /**
     * 支付接口代码
     */
    @Excel(name = "支付接口代码")
    private String ifCode;

    /**
     * 入账方式： WX_CASH-微信零钱; ALIPAY_CASH-支付宝转账; BANK_CARD-银行卡
     */
    @Excel(name = "退款状态", replace = {"微信零钱_WXCASH", "支付宝转账_ALIPAYCASH", "银行卡_BANKCARD"})
    private String entryType;

    /**
     * 转账金额
     */
    @Excel(name = "转账金额")
    private BigDecimal amount;

    /**
     * 收款账号
     */
    @Excel(name = "收款账号")
    private String accountNo;

    /**
     * 收款人姓名
     */
    @Excel(name = "收款人姓名")
    private String accountName;

    /**
     * 收款人开户行名称
     */
    @Excel(name = "收款人开户行名称")
    private String bankName;

    /**
     * 转账备注信息
     */
    @Excel(name = "转账备注信息")
    private String transferDesc;

    /**
     * 支付状态: 0-订单生成, 1-转账中, 2-转账成功, 3-转账失败, 4-订单关闭
     */
    @Excel(name = "退款状态", replace = {"订单生成_0", "转账中_1", "转账成功_2", "转账失败_3", "订单关闭_4"})
    private String state;

    /**
     * 转账成功时间
     */
    @Excel(name = "转账成功时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date successTime;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

}
