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


import java.io.Serializable;
import java.util.List;
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-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("driver_view_info")
public class DriverViewInfo extends BaseModel<DriverViewInfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.UUID)
    private String id;
    /**
     * 公司id
     */
    private String compId;
    /**
     * 司机姓名
     */
    private String driverName;
    /**
     * 司机电话
     */
    private String driverPhone;
    /**
     * 常驻城市省级
     */
    private String residentCityProvincial;
    /**
     * 常驻城市市级
     */
    private String residentCityMunicipal;
    /**
     * 附件地址
     */
    private String addressUrl;
    /**
     * 身份证附件地址
     */
    private String cardAddressUrl;
    /**
     * 司机身份证号码
     */
    private String numberCard;
    /**
     * 司机年龄
     */
    private String driverAge;
    /**
     * 认证状态key（1审核中3未通过7已认证）
     */
    private String authenticationStatusKey;
    /**
     * 认证状态
     */
    private String authenticationStatus;
    /**
     * 已覆盖(1)
     */
    private String cover;
    /**
     * 禁用标识（1:已禁用,0:没禁用）
     */
    private String disableStatusFlag;
    /**
     * 禁用原因
     */
    private String disableReasons;
    /**
     * 用户id
     */
    private String commonId;
    /**
     * APP端(传0)
     */
    @TableField(exist = false)
    private String pcFlag;
    /**
     * 通过1驳回2
     */
    @TableField(exist = false)
    private Integer flag;
    /**
     * 银行卡附件地址
     */
    @TableField(exist = false)
    private String payeeAddressUrl;
    /**
     * 身份证附件地址PC
     */
    @TableField(exist = false)
    private String cardAddressUrl1;

    /**
     * 模糊查询
     */
    @TableField(exist = false)
    private String searchKeyWord;

    @TableField(exist = false)
    private List<DriverCarInfo> driverCarInfoList;

    @TableField(exist = false)
    private List<DriverPayeeInfo> driverPayeeInfoList;
    /**
     * 查询类型
     */
    @TableField(exist = false)
    private String searchType;


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

        public static final String COMP_ID = "comp_id";

        public static final String COMMON_ID = "common_id";

        public static final String DELETE_FLAG = "delete_flag";

        public static final String DISABLE_STATUS_FLAG ="disable_status_flag";

        public static final String DRIVER_PHONE = "driver_phone";

        public static final String NUMBER_CARD = "number_card";
    }
}
