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

import jnpf.permission.vo.v2.user.UserBoundVO;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
public class NextUserCultivatePromotionVo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 用户名称
     */
    private String userName;
    /**
     * 用户头像
     */
    private String userAvatar;

    /**
     * 组织id
     */
    private String organizeId;
    /**
     * 组织名称
     */
    private String organizeName;
    /**
     * 岗位id
     */
    private String positionId;
    /**
     * 岗位名称
     */
    private String positionName;
    /**
     * 职级id
     */
    private String gradeId;
    /**
     * 职级名称
     */
    private String gradeName;


    List<MyCultivatePromotionListVo> promoteList;

    public void fillUserInfo(UserBoundVO userPrimaryBoundOne) {
        this.setUserId(userPrimaryBoundOne.getId());
        this.setUserName(userPrimaryBoundOne.getName());
        this.setOrganizeId(userPrimaryBoundOne.getOrganizeId());
        this.setOrganizeName(userPrimaryBoundOne.getOrganizeName());
        this.setPositionId(userPrimaryBoundOne.getPositionId());
        this.setPositionName(userPrimaryBoundOne.getPositionName());
        this.setGradeId(userPrimaryBoundOne.getGradeId());
        this.setGradeName(userPrimaryBoundOne.getGradeName());
    }
}

