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

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.payment.operator.domain.BusOperatorAccount;
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_operator_account
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusOperatorAccount.class)
public class BusOperatorAccountVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 运营商id
     */
    @ExcelProperty(value = "运营商id")
    private Long opId;

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

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

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

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

    /**
     * 余额（分）
     */
    @ExcelProperty(value = "余额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long balance;

    /**
     * 冻结金额（分）
     */
    @ExcelProperty(value = "冻结金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long frozen;

    /**
     * 已提现金额（分）
     */
    @ExcelProperty(value = "已提现金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long cashout;

    /**
     * 提现中金额（分）
     */
    @ExcelProperty(value = "提现中金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "分=")
    private Long cashouting;

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

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

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

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

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

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

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

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

    /**
     * 附属企业名称
     */
    @ExcelProperty(value = "附属企业名称")
    private String sydName;

    /**
     * 附属企业编号
     */
    @ExcelProperty(value = "附属企业编号")
    private String sydNo;


    private String opName;

    //虚拟户名
    private String name;


    //开户行
    private String khh;

    //联行号
    private String lhh;


}
