package com.xiaoniu.subsystem.business.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xiaoniu.common.core.annotation.Excel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Data
@Schema(description = "教员信息统计参数")
public class TeacherInfoPageVO {

    @Schema(description = "教员ID")
    private Long teacherId;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * 创建人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "创建人",hidden = true)
    private Long createUser;

    /**
     * 创建部门
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "创建部门",hidden = true)
    private Long createDept;

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

    /**
     * 更新人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @Schema(description = "更新人",hidden = true)
    private Long updateUser;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间",hidden = true)
    private Date updateTime;

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

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

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