package org.dromara.payment.merchant.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.payment.merchant.domain.BusMerchantAccount;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

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



/**
 * 商户资金账户视图对象 bus_merchant_account
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusMerchantAccount.class)
public class BusMerchantAccountVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 商户id
     */
    @ExcelProperty(value = "商户id")
    private Long merId;

    /**
     * 结算中心id
     */
    @ExcelProperty(value = "结算中心id")
    private Long sydId;

    private String merName;

    private String sydName;

    /**
     * 账户id
     */
    @ExcelProperty(value = "账户id")
    private Long accId;

    /**
     * 归属账户方
     */
    private String accName;

    /**
     * 银行类型（字典）
     */
    @ExcelProperty(value = "银行类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "字=典")
    private String bankType;

    /**
     * 银行虚拟账号
     */
    @ExcelProperty(value = "银行虚拟账号")
    private String bankVirtualCard;

    /**
     * 余额
     */
    @ExcelProperty(value = "余额")
    private Long balance;

    /**
     * 冻结金额
     */
    @ExcelProperty(value = "冻结金额")
    private Long frozen;

    /**
     * 是否默认（0:否 1:是）
     */
    @ExcelProperty(value = "是否默认", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:否,1=:是")
    private Long isDefault;

    /**
     * 添加时间
     */
    @ExcelProperty(value = "添加时间")
    private Date addTime;

    /**
     * 已结算金额
     */
    @ExcelProperty(value = "已结算金额")
    private Long settlement;

    /**
     * 可开票已结算金额
     */
    @ExcelProperty(value = "可开票已结算金额")
    private Long invoiceSettlement;

    /**
     * 已开票金额
     */
    @ExcelProperty(value = "已开票金额")
    private Long invoice;

    /**
     * 状态（1:正常 2:冻结）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=:正常,2=:冻结")
    private Integer status;

    /**
     * 外卡卡号
     */
    @ExcelProperty(value = "外卡卡号")
    private String outBankCard;

    /**
     * 开户地
     */
    @ExcelProperty(value = "开户地")
    private String kfd;

    /**
     * 开户行
     */
    @ExcelProperty(value = "开户行")
    private String kfh;

    /**
     * 开户行行号
     */
    @ExcelProperty(value = "开户行行号")
    private String khhNo;


    private String sydNo;

    private String merNo;

    private String name;

    //开户行
    private String khh;

    //联行号
    private String lhh;

}
