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 GraduationAssessmentPageVO {

    @Schema(description = "结业考核ID")
    private Long assessmentId;

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "入学摸底考试成绩")
    private Integer admissionScore;

    @Schema(description = "日常成绩")
    private Integer dailyPerformance;

    @Schema(description = "理论成绩")
    private Integer theoreticalAchievement;

    @Schema(description = "实操成绩")
    private Integer actualPerformance;

    @Schema(description = "装配台")
    private Integer assemblyStand;

    @Schema(description = "实操总成绩")
    private Integer overallPracticalScore;

    @Schema(description = "总成绩")
    private Integer totalScore;

    @Schema(description = "考评等次")
    private String evaluationOrder;

    @Schema(description = "是否结业（0是 1否）")
    private String isFinishSchool;

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

    @Schema(description = "主责单位名称")
    private String mainUnitName;

    @Schema(description = "主责单位ID")
    private Long mainUnitId;
    /**
     * 创建人
     */
    @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;

}
