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

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

@Data
public class CultivateSimpleUserInfoVo {
    /**
     * 用户id
     */
    private String id;
    /**
     * 用户名字
     */
    private String name;

    /**
     * 员工花名册员工id
     */
    private String systemWorkerId;

    /**
     * 用户账号,预留填充
     */
    private String account;

    /**
     * 头像
     */
    private String headIcon;

    /**
     * 用户主组织id
     */
    private String organizeId;
    /**
     * 用户主组织名称
     */
    private String organizeName;

    /**
     * 用户主职位id
     */
    private String positionId;
    /**
     * 用户主职位名称
     */
    private String positionName;

    /**
     * 用户主职级id
     */
    private String gradeId;
    /**
     * 用户主职级名称
     */
    private String gradeName;


    public void convert(UserPageListVO vo) {
        this.setId(vo.getId());
        this.setName(vo.getName());
        this.setSystemWorkerId(vo.getSystemWorkerId());
        this.setAccount(vo.getAccount());
        this.setOrganizeId(vo.getOrganizeId());
        this.setOrganizeName(vo.getOrganizeName());
        this.setPositionId(vo.getPositionId());
        this.setPositionName(vo.getPositionName());
        this.setGradeId(vo.getGradeId());
        this.setGradeName(vo.getGradeName());
        this.setPositionName(vo.getPositionName());
    }
}
