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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaoniu.common.core.annotation.Excel;
import com.xiaoniu.common.core.resdata.BaseQueryDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
public class PersonnelConfirmPageDTO extends BaseQueryDTO {

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

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

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

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

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

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

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

    /**
     * 主键集合
     */
    @Schema(description = "主键集合")
    private String ids;

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