@ -35,12 +35,13 @@ import com.engine.organization.mapper.scheme.GradeMapper;
import com.engine.organization.mapper.scheme.LevelMapper ;
import com.engine.organization.mapper.scheme.SchemeMapper ;
import com.engine.organization.service.ImportCommonService ;
import com.engine.organization.thread.* ;
import com.engine.organization.thread.HrmResourceTriggerRunnable ;
import com.engine.organization.thread.JobTriggerRunnable ;
import com.engine.organization.thread.OrganizationSyncEc ;
import com.engine.organization.util.HasRightUtil ;
import com.engine.organization.util.OrganizationAssert ;
import com.engine.organization.util.db.MapperProxyFactory ;
import com.engine.organization.util.excel.ExcelUtil ;
import com.engine.organization.util.relation.EcHrmRelationUtil ;
import com.engine.organization.util.saveimport.OrgImportUtil ;
import org.apache.commons.collections.CollectionUtils ;
import org.apache.commons.lang3.StringUtils ;
@ -725,9 +726,8 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ
}
}
map . put ( "parent_company" , parentCompanyId ) ;
if ( null ! = parentCompanyId ) {
map . put ( "ec_company" , EcHrmRelationUtil . getEcCompanyId ( parentCompanyId . toString ( ) ) ) ;
}
map . put ( "ec_company" , parentCompanyId ) ;
companyName = split [ split . length - 1 ] ;
map . put ( "comp_name" , companyName ) ;
}
@ -962,11 +962,10 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ
}
}
map . put ( "parent_comp" , parentCompanyId ) ;
map . put ( "ec_company" , EcHrmRelationUtil. getEcCompanyId ( parentCompanyId. toString ( ) ) ) ;
map . put ( "ec_company" , parentCompanyId) ;
map . put ( "parent_dept" , parentDepartmentId ) ;
if ( null ! = parentDepartmentId ) {
map . put ( "ec_department" , EcHrmRelationUtil . getEcDepartmentId ( parentDepartmentId . toString ( ) ) ) ;
}
map . put ( "ec_department" , parentDepartmentId ) ;
departmentName = split [ split . length - 1 ] ;
map . put ( "dept_name" , departmentName ) ;
}
@ -1223,10 +1222,8 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ
}
map . put ( "parent_comp" , parentCompanyId ) ;
map . put ( "parent_dept" , parentDepartmentId ) ;
map . put ( "ec_company" , EcHrmRelationUtil . getEcCompanyId ( Util . null2String ( parentCompanyId ) ) ) ;
if ( null ! = parentDepartmentId ) {
map . put ( "ec_department" , EcHrmRelationUtil . getEcDepartmentId ( Util . null2String ( parentDepartmentId ) ) ) ;
}
map . put ( "ec_company" , parentCompanyId ) ;
map . put ( "ec_department" , parentDepartmentId ) ;
map . put ( "parent_job" , parentJobId ) ;
jobName = split [ split . length - 1 ] ;
map . put ( "job_name" , jobName ) ;
@ -1486,10 +1483,9 @@ public class ImportCommonServiceImpl extends Service implements ImportCommonServ
}
map . put ( "company_id" , parentCompanyId ) ;
map . put ( "department_id" , parentDepartmentId ) ;
map . put ( "ec_company" , EcHrmRelationUtil . getEcCompanyId ( Util . null2String ( parentCompanyId ) ) ) ;
if ( null ! = parentDepartmentId ) {
map . put ( "ec_department" , EcHrmRelationUtil . getEcDepartmentId ( Util . null2String ( parentDepartmentId ) ) ) ;
}
map . put ( "ec_company" , parentCompanyId ) ;
map . put ( "ec_department" , parentDepartmentId ) ;
map . put ( "job_title" , parentJobId ) ;
}
}