package org.dromara.payment.common.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_accounts
 *
 * @author LionLi
 * @date 2024-04-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("bus_accounts")
public class BusAccounts extends BaseEntity {
    public BusAccounts(){}

    public BusAccounts(Long sydId, Long unitId, Long accId, String bankType, String bankCard, Long isDefault, Date addTime, Integer addYpe,String name,
                       String khh,String lhh) {
        this.sydId = sydId;
        this.unitId = unitId;
        this.accId = accId;
        this.bankType = bankType;
        this.bankCard = bankCard;
        this.isDefault = isDefault;
        this.addTime = addTime;
        this.addYpe = addYpe;
        this.name = name;
        this.khh = khh;
        this.lhh = lhh;
    }

    @Serial
    private static final long serialVersionUID = 1L;

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

    private String name;

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

    /**
     * 企业id
     */
    private Long unitId;

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

    /**
     * 银行类型
     */
    private String bankType;

    /**
     * 银行账号
     */
    private String bankCard;

    /**
     * 余额
     */
    private Long balance;

    /**
     * 冻结金额
     */
    private Long frozen;

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

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

    /**
     * 状态（0:未开通 1:开通成功 2:冻结 3:开通中 4:开通失败）
     */
    private Integer status;

    /**
     * 开户类型（0:系统 6：服务商  9：商户 ）
     */
    private Integer addYpe;

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

    /**
     * 备注
     */
    private String remark;


    private String khh;

    private String lhh;


}
