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 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.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

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

    private static final long serialVersionUID = 1L;

    @Schema(description = "查寝ID")
    @TableId(value = "check_id", type = IdType.AUTO)
    private Long checkId;

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

    @Excel(name = "姓名",sort = 1)
    @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 = "送训单位ID")
    private Long sendingUnitId;

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

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

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

    @Excel(name = "查寝日期", dateFormat = "yyyy-MM-dd",sort=4)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Schema(description = "查寝日期")
    private Date checkDate;

    @Excel(name = "签到状态",readConverterExp = "0=未签到,1=已签到,2=签到异常",sort=5)
    @Schema(description = "签到状态（0未签到 1已签到 2签到异常）")
    private String status;



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

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