|
|
|
@ -820,15 +820,11 @@ public class DepartmentServiceImpl extends Service implements DepartmentService
|
|
|
|
|
* @param parentComp
|
|
|
|
|
*/
|
|
|
|
|
private void refreshJobComp(Integer parentDepartment, Integer parentComp) {
|
|
|
|
|
//List<JobPO> jobPOS = getJobMapper().listJobsByDepartmentId(parentDepartment);
|
|
|
|
|
//jobPOS = jobPOS.stream().filter(item -> null == item.getParentJob() || 0 == item.getParentJob()).collect(Collectors.toList());
|
|
|
|
|
//if (CollectionUtils.isNotEmpty(jobPOS)) {
|
|
|
|
|
// getJobMapper().updateJobCompany(jobPOS.stream().map(JobPO::getId).collect(Collectors.toList()), parentComp, parentComp);
|
|
|
|
|
// for (JobPO jobPO : jobPOS) {
|
|
|
|
|
// // 刷新组织架构图
|
|
|
|
|
// new JobTriggerRunnable(jobPO.getId()).run();
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
List<JobPO> jobPOS = getJobMapper().listJobsByDepartmentId(parentDepartment);
|
|
|
|
|
jobPOS = jobPOS.stream().filter(item -> null == item.getParentJob() || 0 == item.getParentJob()).collect(Collectors.toList());
|
|
|
|
|
if (CollectionUtils.isNotEmpty(jobPOS)) {
|
|
|
|
|
getJobMapper().updateJobCompany(jobPOS.stream().map(JobPO::getId).collect(Collectors.toList()), parentComp, parentComp);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private List<SearchConditionGroup> getDepartmentConditionGroups(Map<String, Object> params) {
|
|
|
|
|