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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
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 SignPageVO {
    @Schema(description = "签到ID")
    private Long signId;

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

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

    @Schema(description = "专业（班次）ID")
    private Long flightId;

    @Schema(description = "专业（班次）名称")
    private String flightName;

    @Schema(description = "专业（班次）编码")
    private String flightCode;

    @Schema(description = "承训单位ID")
    private Long tissueUnitId;

    @Schema(description = "承训单位名称")
    private String tissueUnitName;

    @Schema(description = "培训地址")
    private String tissueUnitAddress;

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

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

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

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

    @Schema(description = "上午是否签到（0未签到 1已签到）")
    private String morningStatus;

    @Schema(description = "下午是否签到（0未签到 1已签到）")
    private String afternoonStatus;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "签到日期")
    private Date signDate;

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

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