package com.ruoyi.info.collection.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * 账户库VO
 *
 * @author ruoyi
 * @date 2026-04-13
 */
@Data
@Schema(description = "账户库信息")
public class CcdiAccountInfoVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @Schema(description = "主键ID")
    private Long id;

    /** 所属人类型 */
    @Schema(description = "所属人类型")
    private String ownerType;

    /** 所属人标识 */
    @Schema(description = "所属人标识")
    private String ownerId;

    /** 员工工号 */
    @Schema(description = "员工工号")
    private Long staffId;

    /** 员工姓名 */
    @Schema(description = "员工姓名")
    private String staffName;

    /** 关系人ID */
    @Schema(description = "关系人ID")
    private Long relationId;

    /** 关系类型 */
    @Schema(description = "关系类型")
    private String relationType;

    /** 关系人姓名 */
    @Schema(description = "关系人姓名")
    private String relationName;

    /** 关系人证件号 */
    @Schema(description = "关系人证件号")
    private String relationCertNo;

    /** 账户号码 */
    @Schema(description = "账户号码")
    private String accountNo;

    /** 账户类型 */
    @Schema(description = "账户类型")
    private String accountType;

    /** 账户范围 */
    @Schema(description = "账户范围")
    private String bankScope;

    /** 账户姓名 */
    @Schema(description = "账户姓名")
    private String accountName;

    /** 开户机构 */
    @Schema(description = "开户机构")
    private String openBank;

    /** 银行代码 */
    @Schema(description = "银行代码")
    private String bankCode;

    /** 币种 */
    @Schema(description = "币种")
    private String currency;

    /** 状态 */
    @Schema(description = "状态")
    private Integer status;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "生效日期")
    private Date effectiveDate;

    /** 失效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "失效日期")
    private Date invalidDate;

    /** 是否实控账户 */
    @Schema(description = "是否实控账户")
    private Integer isActualControl;

    /** 月均交易笔数 */
    @Schema(description = "月均交易笔数")
    private Integer avgMonthTxnCount;

    /** 月均交易金额 */
    @Schema(description = "月均交易金额")
    private BigDecimal avgMonthTxnAmount;

    /** 频率等级 */
    @Schema(description = "频率等级")
    private String txnFrequencyLevel;

    /** 借方单笔最高额 */
    @Schema(description = "借方单笔最高额")
    private BigDecimal debitSingleMaxAmount;

    /** 贷方单笔最高额 */
    @Schema(description = "贷方单笔最高额")
    private BigDecimal creditSingleMaxAmount;

    /** 借方日累计最高额 */
    @Schema(description = "借方日累计最高额")
    private BigDecimal debitDailyMaxAmount;

    /** 贷方日累计最高额 */
    @Schema(description = "贷方日累计最高额")
    private BigDecimal creditDailyMaxAmount;

    /** 风险等级 */
    @Schema(description = "风险等级")
    private String txnRiskLevel;

    /** 创建者 */
    @Schema(description = "创建者")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private Date createTime;

    /** 更新者 */
    @Schema(description = "更新者")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private Date updateTime;
}
