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.apache.poi.ss.usermodel.IndexedColors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 入学摸底考试成绩
 * </p>
 *
 * @author haoxuyang
 * @since 2024-12-23 05:36:11
 */
@Data
@Accessors(chain = true)
@TableName("tb_admission_examination")
@Schema(description = "入学摸底考试成绩")
public class AdmissionExamination implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "考试ID")
    @TableId(value = "examination_id", type = IdType.AUTO)
    private Long examinationId;

    @Schema(description = "人员ID")
    private Long userId;

    @Excel(name = "姓名",headerColor = IndexedColors.RED)
    @Schema(description = "姓名")
    private String userName;

    @Excel(name = "年度",headerColor = IndexedColors.RED)
    @Schema(description = "年度")
    private String year;

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

    @Excel(name = "班次名称",headerColor = IndexedColors.RED)
    @Schema(description = "班次名称")
    private String flightName;

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

    @Excel(name = "身份证号",headerColor = IndexedColors.RED)
    @Schema(description = "身份证号")
    private String idCard;

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

    @Excel(name = "送训单位名称",headerColor = IndexedColors.RED)
    @Schema(description = "送训单位名称")
    private String sendingUnitName;

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

    @Excel(name = "总成绩",headerColor = IndexedColors.RED)
    @Schema(description = "总成绩")
    private Integer totalScore;

    @Excel(name = "考评等次",readConverterExp = "0=优秀,1=良好,2=及格,3=不及格",headerColor = IndexedColors.RED)
    @Schema(description = "考评等次(0优秀，1良好，2及格，3不及格)")
    private String evaluationOrder;

    @Schema(description = "考试单扫描件")
    private String examinationPaper;

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

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

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

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