package jnpf.model.cultivate.vo.promotion;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Title: FtbCultivatePromotionWithPersonelVO
 * @Author: peng.hao
 * @create: 2024/4/8 15:23
 */
@Data
public class FtbCultivatePromotionWithPersonelVO {

    private String userId;
    /**
     * 用户ID
     */
    private String  sysUserId;
    /**
     * 用户名称
     */
    private String  userName;
    /**
     * 地图Id
     */
    private String  promotionId;
    /**
     * 地图名称
     */
    private String  promotion;
    /**
     * 地图ID
     */
    private String  promotionBusinessId;
    /**
     * 初始岗位
     */
    private String  channelIniName;
    /**
     * 学习范围
     */
    private Integer learningScope;
    /**
     * 岗位等级，初始岗位为1,岗位级别越高，位置就越靠后，级别数就越大
     */
    private Integer channelLevel;
    /**
     * 学习进度
     */
    private BigDecimal learningProgress;
    /**
     * 岗位选择详情
     */
    List<FtbCultivatePromotionWithPersonnelInfo> learnMapInfoVOS;
    /**
     * 已学岗位
     */
    private List<String> positionLearned;

    public static FtbCultivatePromotionWithPersonelVO covert(FtbCultivatePromotionLevelMapVO mapVO) {
        if (mapVO == null) {
            return null;
        }
        FtbCultivatePromotionWithPersonelVO ftbCultivatePromotionWithPersonelVO = new FtbCultivatePromotionWithPersonelVO();
        ftbCultivatePromotionWithPersonelVO.setPromotionId(mapVO.getPromotionId());
        ftbCultivatePromotionWithPersonelVO.setPromotion(mapVO.getPromotion());
        ftbCultivatePromotionWithPersonelVO.setPromotionBusinessId(mapVO.getPromotionBusinessId());
        ftbCultivatePromotionWithPersonelVO.setChannelIniName(mapVO.getChannelIniName());
        ftbCultivatePromotionWithPersonelVO.setLearningScope(mapVO.getLearningScope());
        ftbCultivatePromotionWithPersonelVO.setChannelLevel(mapVO.getChannelLevel());
        ftbCultivatePromotionWithPersonelVO.setLearningProgress(mapVO.getLearningProgress());
        return ftbCultivatePromotionWithPersonelVO;
    }
}
