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

import java.io.Serializable;

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

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-07-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("identity_authentication_info")
public class IdentityAuthenticationInfo extends BaseModel<IdentityAuthenticationInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 粮商类型标识（1:个人,2:企业）
     */
    private String customerTypeFlag;
    /**
     * 粮商类型
     */
    private String customerType;
    /**
     * 公司名称
     */
    private String compName;
    /**
     * 纳税人识别号
     */
    private String payTaxesCard;
    /**
     * 姓名
     */
    private String customerName;
    /**
     * 手机号
     */
    private String customerPhone;
    /**
     * 所属供应商
     */
    private String supplier;
    /**
     * 已完成量(吨)
     */
    private Float completedQuantity;
    /**
     * 供应商电话
     */
    private String supplierPhone;
    /**
     * 收款人姓名
     */
    private String payeeName;
    /**
     * 收款人身份证号码
     */
    private String payeeNumberCard;
    /**
     * 身份证号码
     */
    private String customerNumberCard;
    /**
     * 银行卡附件地址
     */
    private String payeeAddressUrl;
    /**
     * 营业执照附件地址
     */
    private String businessLicenseAddressUrl;
    /**
     * 身份证附件地址
     */
    private String cardAddressUrl;
    /**
     * 银行卡账号
     */
    private String bankCard;
    /**
     * 开户行
     */
    private String bankDeposit;
    /**
     * 开户支行
     */
    private String bankDepositBranch;
    /**
     * 公司地址(联系地址)
     */
    private String compAddress;
    /**
     * 认证状态key（1审核中3未通过7已认证）
     */
    private String authenticationStatusKey;
    /**
     * 认证状态
     */
    private String authenticationStatus;
    /**
     * 认证状态英文
     */
    private String authenticationStatusEn;
    /**
     * 已覆盖(1)
     */
    private String cover;
    /**
     * 默认标识（1是）
     */
    private String defaultFlag;
    /**
     * 用户id
     */
    private String commonId;
    /**
     * 通过1驳回2
     */
    @TableField(exist = false)
    private Integer flag;
    /**
     * 模糊查询
     */
    @TableField(exist = false)
    private String searchKeyWord;

    /**
     * 查询类型
     */
    @TableField(exist = false)
    private String searchType;

    @TableField(exist = false)
    private DriverViewInfo driverViewInfo;

    @TableField(exist = false)
    private DriverCarInfo driverCarInfo;

    @TableField(exist = false)
    private DriverPayeeInfo driverPayeeInfo;
    /**
     * 仓库id
     */
    @TableField(exist = false)
    private String warehouseId;
    /**
     * 货名
     */
    @TableField(exist = false)
    private String goodsName;


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

        public static final String COMMON_ID = "common_id";

        public static final String CUSTOMER_PHONE = "customer_phone";

        public static final String DELETE_FLAG = "delete_flag";

        public static final String DEFAULT_FLAG = "default_flag";

        public static final String COMP_ID = "comp_id";
    }
}
