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

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

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

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

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

    /**
     * 实操鉴定主键id
     */
    private String identityId;
    /**
     * 实操鉴定表名称
     */
    private String identityName;

    /**
     * 岗位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(FtbCultivatePositionCourseIdentity identity) {
        this.setId(identity.getId());
        this.setIdentityId(identity.getIdentityId());
        this.setPostRankId(identity.getPostRankId());
        this.setGradeId(identity.getGradeId());
        this.setCreatorTime(identity.getCreatorTime());
        this.setLastModifyTime(identity.getLastModifyTime());
    }
}
