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

import java.util.Date;

import org.dromara.payment.sys.domain.SysSydAccount;
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;


/**
 * 服务商账户视图对象 sys_syd_account
 *
 * @author LionLi
 * @date 2024-03-26
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysSydAccount.class)
public class SysSydAccountVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 税源地id
     */
    @ExcelProperty(value = "税源地id")
    private Long sydId;

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

    /**
     * 账户类型（0:主账户 1:个人服务费账户）
     */
    @ExcelProperty(value = "账户类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=:主账户,1=:个人服务费账户")
    private Long accType;

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

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

    /**
     * 余额
     */
    @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 invoice;

    /**
     * 状态（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;
}
