package jnpf.model.cultivate.vo.promotion;

import jnpf.model.cultivate.po.promotion.FtbCultivatePromotionPostNew;
import lombok.Data;

/**
 * @Title:FtbCultivatePromotionPostVO
 * @Author:peng.hao
 * @create: 2023/12/1714:08
 */
@Data
public class FtbCultivatePromotionPostNewVO {

    /**
     * 晋升通道主键id
     */
    private String promotionId;

    /**
     * 通道初始岗位id
     */
    private String postId;
    /**
     * 通道初始岗位名称
     */
    private String postName;

    /**
     * 岗位等级，初始岗位为1,岗位级别越高，位置就越靠后，级别数就越大
     */
    private Integer channelLevel;

    /**
     * 选学数量(根据选学数量控制学习数量)
     */
    private Integer selectCourseNumber;


    public static FtbCultivatePromotionPostNew coverFtbCultivatePromotionPostVO(FtbCultivatePromotionPostNewVO vo) {
        if (vo == null) {
            return null;
        }
        FtbCultivatePromotionPostNew ftbCultivatePromotionPost = new FtbCultivatePromotionPostNew();
        ftbCultivatePromotionPost.setPromotionId(vo.getPromotionId());
        ftbCultivatePromotionPost.setSelectCourseNumber(vo.getSelectCourseNumber());
        ftbCultivatePromotionPost.setLevel(vo.getChannelLevel());
        return ftbCultivatePromotionPost;
    }
}
