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.apache.poi.ss.usermodel.IndexedColors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 接送站信息统计表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-12-23 05:36:11
 */
@Data
@Accessors(chain = true)
@TableName("tb_transfer_station")
@Schema(description = "接送站信息统计表")
public class TransferStation implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "接送站ID")
    @TableId(value = "station_id", type = IdType.AUTO)
    private Long stationId;

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

    @Excel(name = "姓名",headerColor = IndexedColors.RED)
    @Schema(description = "姓名")
    private String userName;

    @Excel(name = "年度",headerColor = IndexedColors.RED)
    @Schema(description = "年度")
    private String year;

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

    @Excel(name = "班次名称",headerColor = IndexedColors.RED)
    @Schema(description = "班次名称")
    private String flightName;

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

    @Excel(name = "送训单位名称",headerColor = IndexedColors.RED)
    @Schema(description = "送训单位名称")
    private String sendingUnitName;

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

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

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

    @Schema(description = "培训地点")
    private String trainingSite;

    @Excel(name = "出发地",headerColor = IndexedColors.RED)
    @Schema(description = "出发地")
    private String sendingAddress;

    @Excel(name = "目的地",headerColor = IndexedColors.RED)
    @Schema(description = "目的地")
    private String destinationAddress;

    @Excel(name = "车次/航班",headerColor = IndexedColors.RED)
    @Schema(description = "车次/航班")
    private String trainNumber;

    @Excel(name = "到达时间", dateFormat = "yyyy-MM-dd HH:mm:ss",headerColor = IndexedColors.RED)
    @Schema(description = "到达时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date destinationTime;

    @Excel(name = "联系方式",headerColor = IndexedColors.RED)
    @Schema(description = "联系方式")
    private String phonenumber;


    @Schema(description = "不通过原因")
    private String reason;

    @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",headerColor = IndexedColors.RED)
    @Schema(description = "开训时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date trainingTime;
}
