package org.dromara.payment.sys.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;

/**
 * 服务商账户对象 sys_syd_account
 *
 * @author LionLi
 * @date 2024-03-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_syd_account")
public class SysSydAccount extends BaseEntity {

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

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

    public SysSydAccount(Long id,Long sydId, Long accId,Integer accType, String bankType, String bankCard, Long balance, Long frozen,
                         Long isDefault, Date addTime,String khh,String lhh,String name) {
        super();
        this.id = id;
        this.sydId = sydId;
        this.accId = accId;
        this.bankType = bankType;
        this.bankCard = bankCard;
        this.balance = balance;
        this.frozen = frozen;
        this.isDefault = isDefault;
        this.addTime = addTime;
        this.accType = accType;
        this.khh = khh;
        this.lhh = lhh;
        this.name = name;

    }

    @Serial
    private static final long serialVersionUID = 1L;

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

    /**
     * 税源地id
     */
    private Long sydId;

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

    /**
     * 账户类型（0:主账户 1:个人服务费账户）
     */
    private Integer accType;

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

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

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

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

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

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

    /**
     * 已结算金额
     */
    private Long settlement;

    /**
     * 已开票金额
     */
    private Long invoice;

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

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


    private String lhh;

    private String khh;

    private String name;
}
