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.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 签到表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-12-23 05:36:11
 */
@Data
@Accessors(chain = true)
@TableName("tb_sign")
@Schema(description = "签到表")
public class Sign implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "签到ID")
    @TableId(value = "sign_id", type = IdType.AUTO)
    private Long signId;

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

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

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

    @Excel(name = "班次名称")
    @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;

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

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

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

    @Excel(name = "签到日期", dateFormat = "yyyy-MM-dd")
    @Schema(description = "签到日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date signDate;

    @Excel(name = "上午签到状态",readConverterExp = "0=未签到,1=已签到,2=签到异常")
    @Schema(description = "上午是否签到（0未签到 1已签到 2签到异常）")
    private String morningStatus;

    @Excel(name = "下午签到状态",readConverterExp = "0=未签到,1=已签到,2=签到异常")
    @Schema(description = "下午是否签到（0未签到 1已签到 2签到异常）")
    private String afternoonStatus;



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

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

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

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

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

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

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