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>
 *
 * @since 2023-08-30
 */
@Data
public class CashoutRecordExportExcel {

    /**
     * 提现记录ID
     */
    @Excel(name = "申请单号")
    private String rid;

    /**
     * 名称快照
     */
    @Excel(name = "申请用户")
    private String infoName;

    /**
     * 申请金额
     */
    @Excel(name = "申请提现金额")
    private BigDecimal applyAmount;

    /**
     * 最终结算金额 （申请-手续费）, 单位分
     */
    @Excel(name = "结算金额")
    private BigDecimal settAmount;

    /**
     * 手续费金额,单位分
     */
    @Excel(name = "手续费金额")
    private BigDecimal settFeeAmount;

    /**
     * 结算账户类型： WX_CASH-微信零钱; ALIPAY_CASH-支付宝转账; BANK_CARD-银行卡 BANK_PUBLIC对公   BANK_PRIVATE对私
     */
    @Excel(name = "结算账户类型", replace = {"微信零钱_WXCASH", "支付宝转账_ALIPAYCASH", "银行卡_BANKCARD", "对公_BANKPUBLIC", "对私_BANKPRIVATE"})
    private String settAccountType;

    /**
     * 结算账户名称
     **/
    @Excel(name = "结算账户名称")
    private String settAccountName;

    /**
     * 结算账户账号
     **/
    @Excel(name = "结算账户账号")
    private String settAccountNo;

    /**
     * 开户银行名称
     **/
    @Excel(name = "开户银行名称")
    private String settAccountBank;

    /**
     * 开户支行名称
     **/
    @Excel(name = "开户支行名称")
    private String settAccountSubBank;

    /**
     * 结算账户联系人手机号（一般为服务商手机号）
     */
    @Excel(name = "结算账户联系人手机号")
    private String settAccountTelphone;

    /**
     * 结算审核状态: 1-审核中, 2-审核失败, 3-结算中, 4-结算成功, 5-结算失败
     */
    @Excel(name = "结算状态", replace = {"审核中_1", "审核失败_2", "结算中_3", "结算成功_4", "结算失败_5"})
    private String state;

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