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

import jnpf.model.cultivate.po.position.FtbCultivatePositionCoursePractice;
import lombok.Data;

import java.io.Serializable;

@Data
public class FtbCultivatePositionCoursePracticeVo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private String id;
    /**
     * 练习次数
     */
    private Integer num;

    /**
     * 技能点id
     */
    private String businessId;

    /**
     * 技能点名称
     */
    private String businessName;

    /**
     * 岗位ID
     */

    private String postRankId;

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

    public void convert(FtbCultivatePositionCoursePractice practice) {
        this.setId(practice.getId());
        this.setNum(practice.getNum());
        this.setBusinessId(practice.getBusinessId());
        this.setPostRankId(practice.getPostRankId());
        this.setGradeId(practice.getGradeId());
    }
}
