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_teacher_info")
@Schema(description = "教员信息统计表")
public class TeacherInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "教员ID")
    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Long teacherId;

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

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

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

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

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

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

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

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

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

    @Excel(name = "工作单位")
    @Schema(description = "工作单位")
    private String unitName;

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

    @Excel(name = "从事专业")
    @Schema(description = "从事专业")
    private String major;

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

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