package jnpf.model.cultivate.v2.position.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jnpf.model.cultivate.po.position.FtbCultivatePositionCourseExam;
import lombok.Data;

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

@Data
public class FtbCultivatePositionCourseExamVo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;


    /**
     * 考试id
     */
    private String examId;

    /**
     * 考试名称
     */
    private String examName;

    /**
     * 岗位ID
     */

    private String postRankId;

    /**
     * 职级ID
     */
    private String gradeId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date creatorTime;


    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastModifyTime;


    public void convert(FtbCultivatePositionCourseExam exam) {
        this.setId(exam.getId());
        this.setExamId(exam.getExamId());
        this.setPostRankId(exam.getPostRankId());
        this.setGradeId(exam.getGradeId());
        this.setCreatorTime(exam.getCreatorTime());
        this.setLastModifyTime(exam.getLastModifyTime());
    }
}
