package jnpf.model.personnels.vo.turnover;

import jnpf.model.personnels.dto.staff.roster.WorkerGroupDataDto;
import lombok.Data;

/**
 * @Title:FtbPersonnelsTurnoverHandoverVO
 * @Author:peng.hao
 * @create: 2024/2/117:07
 */
@Data
public class FtbPersonnelsTurnoverStatisticVO {



    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户姓名
     */
    private String userName;

    /**
     * 组织 id
     */
    private String affiliatedOrg = "";

    /**
     * 组织encode
     */
    private String orgEncode = "";
    /**
     * 岗位 id
     */
    private String affiliatedPosition = "";

    /**
     * 岗位编码
     */
    private String positionEncode = "";
    /**
     * 职等 id
     */
    private String affiliatedRank = "";
    /**
     * 门店 id
     */
    private String affiliatedShop = "";
    /**
     * 直属主管 id
     */
    private String reportsTo = "";


    /**
     * 组织 名称
     */
    private String affiliatedOrgName = "";
    /**
     * 岗位 名称
     */
    private String affiliatedPositionName = "";
    /**
     * 职等 名称
     */
    private String affiliatedRankName = "";
    /**
     * 门店 名称
     */
    private String affiliatedShopName = "";
    /**
     * 直属主管 名称
     */
    private String reportsToName = "";
    /**
     * 是否为默认组织
     */
    private Boolean isDefaultOrganize = Boolean.FALSE;
    /**
     * 是否为默认岗位
     */
    private Boolean isDefaultPosition = Boolean.FALSE;

    /**
     * 父级 组织id
     */
    private String parentOrg = "";

    /**
     * 父级 组织encode
     */
    private String parentOrgEncode = "";

    /**
     * 父级组织 名称
     */
    private String parentOrgName = "";
    /**
     * 是否为主岗
     */
    private Boolean isPrimaryPosition = false;
    /**
     * 门店
     */
    private String shopId = "";
    /**
     * 门店
     */
    private String shopName = "";
    /**
     * 部门
     */
    private String departmentId = "";
    /**
     * 部门
     */
    private String departmentName = "";

    public static  FtbPersonnelsTurnoverStatisticVO covert(WorkerGroupDataDto data) {
        if (data == null) {
            return null;
        }
        FtbPersonnelsTurnoverStatisticVO ftbPersonnelsTurnoverStatisticVO = new FtbPersonnelsTurnoverStatisticVO();
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedOrg(data.getAffiliatedOrg());
        ftbPersonnelsTurnoverStatisticVO.setOrgEncode(data.getOrgEncode());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedPosition(data.getAffiliatedPosition());
        ftbPersonnelsTurnoverStatisticVO.setPositionEncode(data.getPositionEncode());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedRank(data.getAffiliatedRank());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedShop(data.getAffiliatedShop());
        ftbPersonnelsTurnoverStatisticVO.setReportsTo(data.getReportsTo());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedOrgName(data.getAffiliatedOrgName());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedPositionName(data.getAffiliatedPositionName());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedRankName(data.getAffiliatedRankName());
        ftbPersonnelsTurnoverStatisticVO.setAffiliatedShopName(data.getAffiliatedShopName());
        ftbPersonnelsTurnoverStatisticVO.setReportsToName(data.getReportsToName());
        ftbPersonnelsTurnoverStatisticVO.setIsDefaultOrganize(data.getIsDefaultOrganize());
        ftbPersonnelsTurnoverStatisticVO.setIsDefaultPosition(data.getIsDefaultPosition());
        ftbPersonnelsTurnoverStatisticVO.setParentOrg(data.getParentOrg());
        ftbPersonnelsTurnoverStatisticVO.setParentOrgEncode(data.getParentOrgEncode());
        ftbPersonnelsTurnoverStatisticVO.setParentOrgName(data.getParentOrgName());
        ftbPersonnelsTurnoverStatisticVO.setIsPrimaryPosition(data.getIsPrimaryPosition());
        ftbPersonnelsTurnoverStatisticVO.setShopId(data.getShopId());
        ftbPersonnelsTurnoverStatisticVO.setShopName(data.getShopName());
        ftbPersonnelsTurnoverStatisticVO.setDepartmentId(data.getDepartmentId());
        ftbPersonnelsTurnoverStatisticVO.setDepartmentName(data.getDepartmentName());
        return ftbPersonnelsTurnoverStatisticVO;
    }
}
