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

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.payment.channel.domain.BusChannelAccount;
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_channel_account
 *
 * @author LionLi
 * @date 2024-04-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = BusChannelAccount.class)
public class BusChannelAccountVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 代理商id
     */
    @ExcelProperty(value = "代理商id")
    private Long channelId;

    /**
     * 代理商名称
     */
    @ExcelProperty(value = "代理商名称")
    private String channelName;

    /**
     * 代理商编号
     */
    @ExcelProperty(value = "代理商编号")
    private String channelNo;

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

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

    /**
     * 银行类型
     */
    @ExcelProperty(value = "银行类型")
    private String bankType;

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

    /**
     * 总收益(分)
     */
    @ExcelProperty(value = "总收益(分)")
    private Long balance;

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

    /**
     * 已提现金额(分)
     */
    @ExcelProperty(value = "已提现金额(分)")
    private Long cashout;

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

    /**
     * 昨日收益(分)
     */
    @ExcelProperty(value = "昨日收益(分)")
    private Long yesterday;

    /**
     * 添加时间
     */
    @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;

    //开户支行
    private String khd;

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

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

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

}
