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_student_info")
@Schema(description = "学员信息表")
public class StudentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "学员ID")
    @TableId(value = "student_id", type = IdType.AUTO)
    private Long studentId;


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

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

    @Excel(name = "学员类型")
    @Schema(description = "学员类型（0初级 1中级 2高级）")
    private String traineeType;

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

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

    @Excel(name = "籍贯")
    @Schema(description = "籍贯")
    private String nativePlace;

    @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")
    @Schema(description = "出生年月")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthday;

    @Excel(name = "入伍年月", dateFormat = "yyyy-MM-dd")
    @Schema(description = "入伍年月")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date enlistmentYear;

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

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

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

    @Excel(name = "现职时间", dateFormat = "yyyy-MM-dd")
    @Schema(description = "现职时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date currentEmployment;

    @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;

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

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

    @Schema(description = "承训单位ID")
    private Long trainingUnitId;

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

    @Excel(name = "联系电话")
    @Schema(description = "联系电话")
    private String phonenumber;

    @Excel(name = "年度")
    @Schema(description = "年度")
    private String year;

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


    @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 educationalSystem;

    /**
     * 主责单位ID
     */
    @Schema(description = "主责单位ID")
    private Long mainUnitId;
    /**
     * 主责单位名称
     */
    @Excel(name = "主责单位名称")
    @Schema(description = "主责单位名称")
    private String mainUnitName;

    @Excel(name = "专业类型")
    @Schema(description = "专业类型")
    private String majorType;
}
