package jnpf.model.cultivate.po.promotion;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jnpf.model.cultivate.entiy.BaseEntity;
import jnpf.model.cultivate.vo.promotion.FtbCultivatePromotionPostNewVO;
import lombok.Data;

/**
    * 晋升通道岗位表
    */
@Data
@TableName(value = "ftb_cultivate_promotion_post_new")
public class FtbCultivatePromotionPostNew extends BaseEntity {


    /**
     * 晋升通道主键id
     */
    @TableField(value = "F_PromotionId")
    private String promotionId;

    /**
     * 选学数量(根据选学数量控制学习数量)
     */
    @TableField(value = "F_SelectCourseNumber")
    private Integer selectCourseNumber;


    /**
     * 岗位等级，初始岗位为1,岗位级别越高，位置就越靠后，级别数就越大
     */
    @TableField(value = "F_Level")
    private Integer level;

    /**
     * 岗位id
     */
    @TableField(value = "F_PostId")
    private String postId;

    /**
     * 岗位名称
     */
    @TableField(value = "F_PostName")
    private String postName;

    /**
     * 职级ID
     */
    @TableField(value = "F_GradeId")
    private String gradeId;

    /**
     * 职级名称
     */
    @TableField(value = "F_GradeName")
    private String gradeName;

    public static FtbCultivatePromotionPostNewVO covert(FtbCultivatePromotionPostNew postNew) {
        if (postNew == null) {
            return null;
        }
        FtbCultivatePromotionPostNewVO ftbCultivatePromotionPostNewVO = new FtbCultivatePromotionPostNewVO();
        ftbCultivatePromotionPostNewVO.setPromotionId(postNew.getPromotionId());
        ftbCultivatePromotionPostNewVO.setChannelLevel(postNew.getLevel());
        ftbCultivatePromotionPostNewVO.setSelectCourseNumber(postNew.getSelectCourseNumber());
        ftbCultivatePromotionPostNewVO.setPostId(postNew.getPostId());
        ftbCultivatePromotionPostNewVO.setPostName(postNew.getPostName());
        return ftbCultivatePromotionPostNewVO;
    }
}