package com.xiaoniu.subsystem.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaoniu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 信息确认表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-12-23 05:36:11
 */
@Data
@Accessors(chain = true)
@TableName("tb_personnel_confirm")
@Schema(description = "信息确认表")
public class PersonnelConfirm implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "人员ID")
    @TableId(value = "person_id", type = IdType.AUTO)
    private Long personId;


    @Excel(name = "姓名")
    @Schema(description = "姓名")
    private String userName;

    @Schema(description = "审核状态（0=待审核，1=审核通过，2=审核未通过）")
    private Integer status;

    @Excel(name = "性别")
    @Schema(description = "性别（0男 1女 2未知）")
    private String sex;

    @Excel(name = "民族")
    @Schema(description = "民族")
    private String nation;

    @Excel(name = "身份证号")
    @Schema(description = "身份证号")
    private String idCard;

    @Schema(description = "班次ID")
    private Long flightId;

    @Excel(name = "班次名称")
    @Schema(description = "班次名称")
    private String flightName;

    @Excel(name = "出生年月", dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "出生年月")
    private Date birthday;

    @Schema(description = "现岗位ID")
    private Long presentPostId;

    @Excel(name = "现岗位")
    @Schema(description = "现岗位")
    private String presentPostName;

    @Excel(name = "职务")
    @Schema(description = "职务")
    private String job;

    @Excel(name = "军衔")
    @Schema(description = "军衔")
    private String militaryRank;

    @Schema(description = "送训单位ID")
    private Long sendingUnitId;

    @Excel(name = "送训单位名称")
    @Schema(description = "送训单位名称")
    private String sendingUnitName;

    @Schema(description = "送训单位地址")
    private String sendingUnitAddress;

    @Excel(name = "学历",readConverterExp = "0=小学,1=初中,2=高中,3=中专,4=大专,5=本科,6=研究生,7=博士")
    @Schema(description = "学历（0小学 1初中 2高中 3中专 4大专 5本科 6研究生 7博士）")
    private String qualification;

    @Schema(description = "单位联系人")
    private String unitContact;

    @Excel(name = "联系方式")
    @Schema(description = "联系方式")
    private String phonenumber;

    @Excel(name = "备注")
    @Schema(description = "备注")
    private String remark;

    @Excel(name = "年度")
    @Schema(description = "年度（示例：yyyy")
    private String year;


    @Schema(description = "不通过原因")
    private String reason;

    @Schema(description = "数据状态（0草稿（待分配）,1待培训,2培训中,3已培训,4作废）")
    private Integer isDistribution;

    @Schema(description = "创建人")
    private Long createUser;

    @Schema(description = "创建部门")
    private Long createDept;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "修改人")
    private Long updateUser;

    @Schema(description = "修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @Schema(description = "是否已删除")
    private Integer isDeleted;

    /**
     * 储存地址
     */
    @Schema(description = "储存地址")
    private String url;

    /**
     * 开训时间
     */
    @Excel(name = "开训时间", dateFormat = "yyyy-MM-dd")
    @Schema(description = "开训时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date trainingTime;
}
