|
|
|
@ -2,8 +2,10 @@ package com.engine.organization.util.saveimport;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.engine.organization.entity.department.po.DepartmentPO;
|
|
|
|
|
import com.engine.organization.entity.extend.po.ExtendInfoPO;
|
|
|
|
|
import com.engine.organization.entity.jclimport.po.JclImportHistoryDetailPO;
|
|
|
|
|
import com.engine.organization.entity.job.po.JobPO;
|
|
|
|
|
import com.engine.organization.entity.staff.bo.StaffBO;
|
|
|
|
|
import com.engine.organization.entity.staff.param.StaffSearchParam;
|
|
|
|
|
import com.engine.organization.entity.staff.po.StaffPO;
|
|
|
|
@ -249,21 +251,33 @@ public class StaffInfoImportUtil {
|
|
|
|
|
param.setJobId(null);
|
|
|
|
|
break;
|
|
|
|
|
case "2":// 部门
|
|
|
|
|
if (null == parentCompanyId) {
|
|
|
|
|
checkMsg = "编制维度选择分部时,分部必填!";
|
|
|
|
|
} else if (null == parentDepartmentId) {
|
|
|
|
|
if (null == parentDepartmentId) {
|
|
|
|
|
checkMsg = "编制维度选择部门时,部门必填!";
|
|
|
|
|
} else {
|
|
|
|
|
DepartmentPO deptById = MapperProxyFactory.getProxy(DepartmentMapper.class).getDeptById(parentDepartmentId);
|
|
|
|
|
if (null == deptById) {
|
|
|
|
|
checkMsg = "未找到对应部门!";
|
|
|
|
|
} else {
|
|
|
|
|
param.setCompId(deptById.getParentComp());
|
|
|
|
|
param.setEcCompany(deptById.getEcCompany());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// 取消岗位赋值
|
|
|
|
|
param.setJobId(null);
|
|
|
|
|
break;
|
|
|
|
|
case "3": // 岗位
|
|
|
|
|
if (null == parentCompanyId) {
|
|
|
|
|
checkMsg = "编制维度选择分部时,分部必填!";
|
|
|
|
|
} else if (null == parentDepartmentId) {
|
|
|
|
|
checkMsg = "编制维度选择部门时,部门必填!";
|
|
|
|
|
} else if (null == parentJobId) {
|
|
|
|
|
if (null == parentJobId) {
|
|
|
|
|
checkMsg = "编制维度选择岗位时,岗位必填!";
|
|
|
|
|
} else {
|
|
|
|
|
JobPO jobPO = MapperProxyFactory.getProxy(JobMapper.class).getJobById(parentJobId);
|
|
|
|
|
if (null == jobPO) {
|
|
|
|
|
checkMsg = "未找到对应岗位!";
|
|
|
|
|
} else {
|
|
|
|
|
param.setCompId(jobPO.getParentComp());
|
|
|
|
|
param.setEcCompany(jobPO.getEcCompany());
|
|
|
|
|
param.setDeptId(jobPO.getParentDept());
|
|
|
|
|
param.setEcDepartment(jobPO.getEcDepartment());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|