package jnpf.model.personnels.vo.uchisuike;

import jnpf.model.personnels.po.FtbPersonnelsUchisuikePond;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class FtbinternalRecommendationPoolVO {
    /**
     * 内推人员主键id
     */
    private String id;
    /**
     * 姓名
     */
    private String userName;

    /**
     * 性别0男1女2未知
     */
    private Integer sex;

    /**
     * 身份证号码
     */
    private String idCard;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 期望组织id
     */
    private String orgId;

    /**
     * 期望岗位id
     */
    private String postId;

    /**
     * 期望职等id
     */
    private String postRankId;

    /**
     * 期望薪资
     */
    private BigDecimal money;

    /**
     * 工作状态0未办理入职，大于0为已入职
     */
    private Long state;

    /**
     * 来源1、APP端个人内推  2、门店招聘、3、组织招聘',
     */
    private Long source;

    /**
     * 内推人Id
     */
    private String pushUserId;
    /**
     * 内推人姓名
     */
    private String pushUserName;

    /**
     * 内推组织id
     */
    private String pushOrgId;

    /**
     * 内推门店id
     */
    private String pushStoreId;

    /**
     * 期望组织名字
     */
    private String orgName;

    /**
     * 期望岗位名称
     */
    private String postName;

    /**
     * 期望职等名称
     */
    private String postRankName;

    /**
     * 内推组织名称
     */
    private String pushOrgName;

    /**
     * 内推门店名称
     */
    private String pushStoreName;
    /**
     * 内推时间
     */
    private Date createTime;
    /**
     * 招聘信息获取渠道
     */
    private String channelsRecruitments;
    /**
     * 是否提交了入职登记表：0、未提交  1、已提交
     */
    private Integer isSubmitForm;

    public static FtbinternalRecommendationPoolVO convert(FtbPersonnelsUchisuikePond uchisuikePond) {
        if (uchisuikePond == null) {
            return null;
        }
        FtbinternalRecommendationPoolVO ftbinternalRecommendationPoolVO = new FtbinternalRecommendationPoolVO();
        ftbinternalRecommendationPoolVO.setUserName(uchisuikePond.getUserName());
        ftbinternalRecommendationPoolVO.setSex(uchisuikePond.getSex());
        ftbinternalRecommendationPoolVO.setIdCard(uchisuikePond.getIdCard());
        ftbinternalRecommendationPoolVO.setPhone(uchisuikePond.getPhone());
        ftbinternalRecommendationPoolVO.setOrgId(uchisuikePond.getOrgId());
        ftbinternalRecommendationPoolVO.setPostId(uchisuikePond.getPostId());
        ftbinternalRecommendationPoolVO.setPostRankId(uchisuikePond.getPostRankId());
        ftbinternalRecommendationPoolVO.setMoney(uchisuikePond.getMoney());
        ftbinternalRecommendationPoolVO.setState(uchisuikePond.getState());
        ftbinternalRecommendationPoolVO.setSource(uchisuikePond.getSource());
        ftbinternalRecommendationPoolVO.setPushUserId(uchisuikePond.getPushUserId());
        ftbinternalRecommendationPoolVO.setPushOrgId(uchisuikePond.getPushOrgId());
        ftbinternalRecommendationPoolVO.setPushStoreId(uchisuikePond.getPushStoreId());
        ftbinternalRecommendationPoolVO.setOrgName(uchisuikePond.getOrgName());
        ftbinternalRecommendationPoolVO.setPostName(uchisuikePond.getPostName());
        ftbinternalRecommendationPoolVO.setPostRankName(uchisuikePond.getPostRankName());
        ftbinternalRecommendationPoolVO.setPushOrgName(uchisuikePond.getPushOrgName());
        ftbinternalRecommendationPoolVO.setPushStoreName(uchisuikePond.getPushStoreName());
        ftbinternalRecommendationPoolVO.setId(uchisuikePond.getId());
        ftbinternalRecommendationPoolVO.setCreateTime(uchisuikePond.getCreatorTime());
        ftbinternalRecommendationPoolVO.setChannelsRecruitments(uchisuikePond.getRecruitmentChannels());
        return ftbinternalRecommendationPoolVO;
    }

}
