package com.yh.saas.plugin.yiliangyiyun.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import com.yh.saas.common.support.entity.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 记录收款账户信息
 * </p>
 *
 * @author Gongdc
 * @since 2021-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("driver_payee_info")
public class DriverPayeeInfo extends BaseModel<DriverPayeeInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 司机id
     */
    private String driverId;
    /**
     * 账户类型标识（1:私人,2:企业）
     */
    private String accountTypeFlag;
    /**
     * 账户类型
     */
    private String accountType;
    /**
     * 银行卡账号
     */
    private String bankCard;
    /**
     * 开户行
     */
    private String bankDeposit;
    /**
     * 开户支行
     */
    private String bankDepositBranch;
    /**
     * 收款人姓名
     */
    private String payeeName;
    /**
     * 收款人身份证号码
     */
    private String payeeNumberCard;
    /**
     * 企业名称
     */
    private String compName;
    /**
     * 银行卡附件地址
     */
    private String payeeAddressUrl;
    /**
     * 身份证附件地址
     */
    private String cardAddressUrl;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    public static class QueryFiles {

        public static final String DRIVER_ID = "driver_id";

        public static final String DELETE_FLAG = "delete_flag";

        public static final String PAYEE_NUMBER_CARD = "payee_number_card";
    }
}
