package org.dromara.payment.operator.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 运营商资金账户对象 bus_operator_account
 *
 * @author LionLi
 * @date 2024-03-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bus_operator_account")
public class BusOperatorAccount extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    public BusOperatorAccount() {
        super();
        // TODO Auto-generated constructor stub
    }

    /**
     * @param sydId
     * @param accId
     * @param bankType
     * @param bankCard
     * @param balance
     * @param frozen
     * @param isDefault
     * @param addTime
     */

    public BusOperatorAccount(Long id,Long sydId, Long accId,String bankType, String bankCard, Long balance, Long frozen,
                         Long isDefault, Date addTime,String name,String khh,String lhh) {
        super();
        this.opId = id;
        this.sydId = sydId;
        this.accId = accId;
        this.bankType = bankType;
        this.bankVirtualCard = bankCard;
        this.balance = balance;
        this.frozen = frozen;
        this.isDefault = isDefault;
        this.addTime = addTime;
        this.name = name;
        this.khh = khh;
        this.lhh = lhh;
    }

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

    /**
     * 运营商id
     */
    private Long opId;

    private String name;

    /**
     * 结算中心id
     */
    private Long sydId;

    /**
     * 账户id
     */
    private Long accId;

    /**
     * 银行类型（字典）
     */
    private String bankType;

    /**
     * 银行虚拟账号
     */
    private String bankVirtualCard;

    /**
     * 余额（分）
     */
    private Long balance;

    /**
     * 冻结金额（分）
     */
    private Long frozen;

    /**
     * 已提现金额（分）
     */
    private Long cashout;

    /**
     * 提现中金额（分）
     */
    private Long cashouting;

    /**
     * 是否默认（0:否 1:是）
     */
    private Long isDefault;

    /**
     * 添加时间
     */
    private Date addTime;

    /**
     * 状态（1:正常 2:冻结）
     */
    private Integer status;

    /**
     * 外卡卡号
     */
    private String outBankCard;

    //开户行
    private String khh;

    //联行号
    private String lhh;


}
