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

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

/**
 * <p>
 * 专业（班次）管理表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-11-29 03:35:08
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("tb_flight")
@Schema(description = "专业（班次）管理表")
public class Flight implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "专业（班次）ID")
    @TableId(value = "flight_id", type = IdType.AUTO)
    private Long flightId;

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

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

    @Excel(name = "学制（天）")
    @Schema(description = "学制（天）")
    private String educationalSystem;

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

    @Excel(name = "结束时间",dateFormat = "yyyy-MM-dd")
    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @Excel(name = "人员类型")
    @Schema(description = "人员类型")
    private String type;

    @Excel(name = "专业类型",readConverterExp = "")
    @Schema(description = "专业类型")
    private String majorType;

    @Excel(name = "年度")
    @Schema(description = "年度（示例：yyyy")
    private String year;

    @Excel(name = "状态（0正常 1停用）")
    @Schema(description = "状态（0正常 1停用）")
    private Integer status;

    @Excel(name = "预算金额")
    @Schema(description = "预算金额")
    private String budgetedAmount;

    @Excel(name = "结算金额")
    @Schema(description = "结算金额")
    private String settlementAmount;

    @Excel(name = "培训员额（人）")
    @Schema(description = "培训员额（人）")
    private String trainingPost;

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

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

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

    @Excel(name = "联系人")
    @Schema(description = "联系人")
    private String contactPerson;

    @Excel(name = "联系电话")
    @Schema(description = "联系电话")
    private String phonenumber;

    @Schema(description = "组织考核单位ID")
    private Long assessmentUnitId;

    @Excel(name = "组织考核单位名称")
    @Schema(description = "组织考核单位名称")
    private String assessmentUnitName;

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

    @Schema(description = "创建人",hidden = true)
    private Long createUser;

    @Schema(description = "创建部门",hidden = true)
    private Long createDept;

    @Schema(description = "创建",hidden = true)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @Schema(description = "修改人")
    private Long updateUser;

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

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

    @Schema(description = "培训类型（0=初级,1=中级,2=高级）")
    private String trainingType;

    @Schema(description = "培训内容")
    private String trainingContent;

    /**
     * 主责单位ID
     */
    @Schema(description = "主责单位ID")
    private Long mainUnitId;
    /**
     * 主责单位名称
     */
    @Excel(name = "主责单位名称")
    @Schema(description = "主责单位名称")
    private String mainUnitName;
}
