package org.dromara.main.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * 学员任职记录视图对象（联查岗位表和租户表）
 */
@Data
public class StudentJobRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long candidateId;
    private String tenantId;
    private Long postId;
    private Long studentId;

    /** 任职状态(onboard在职/left已离职) */
    private String employmentStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date entryTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date leaveTime;

    /** 离职原因 */
    private String leaveReason;

    /** 公司名称(来自sys_tenant) */
    private String companyName;

    /** 岗位名称(来自main_position) */
    private String postName;

    /** 岗位类型(来自main_position) */
    private String postType;
}
