package com.unis.crk.cplbusiness.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.unis.crk.basic.entity.Attaches;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 调度管理(人员管理表)
 * </p>
 *
 * @author TangSong
 * @since 2022-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DispatcPersonnelManagement对象", description="调度管理(人员管理表)")
public class DispatcPersonnelManagement implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "数据记录id")
    @TableId(value = "dataId", type = IdType.UUID)
    private String dataId;

    @ApiModelProperty(value = "单位ID")
    private String unitid;

    @ApiModelProperty(value = "条目创建人")
    private String builder;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "builderDate",fill = FieldFill.INSERT)
    private Date builderDate;

    @ApiModelProperty(value = "编辑人")
    private String editor;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "modifyDate",fill = FieldFill.INSERT_UPDATE)
    private Date modifyDate;

    @ApiModelProperty(value = "上传数据时间")
    @TableField(value = "updateTime",strategy = FieldStrategy.IGNORED,update = "null",fill = FieldFill.UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "姓名")
    private String personName;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "民族")
    private String nation;

    @ApiModelProperty(value = "健康状况")
    private String health;

    @ApiModelProperty(value = "出生年月")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date dateOfBirth;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "籍贯")
    private String nativePlace;

    @ApiModelProperty(value = "文化程度")
    private String degreeOfEducation;

    @ApiModelProperty(value = "身份证号")
    private String idNumber;

    @ApiModelProperty(value = "联系电话")
    private String contactNumber;

    @ApiModelProperty(value = "联系地址")
    private String contactAddress;

    @ApiModelProperty(value = "驾照类型")
    private String licenseType;

    @ApiModelProperty(value = "驾驶证号")
    private String driversLicenseNumber;

    @ApiModelProperty(value = "初领时间")
    @TableField("Initial_collection_time")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date initialCollectionTime;

    @ApiModelProperty(value = "准驾车型")
    private String quasiDriving ;

    @ApiModelProperty(value = "司机照片url")
    private String riverPhotos;

    @ApiModelProperty(value = "附件信息")
    @TableField(exist = false)
    private Attaches attaches;
}
