Merge pull request '人员筛选接口开发、调整' (#122) from feature/dxf into develop

Reviewed-on: http://221.226.25.34:3000/liang.cheng/weaver-hrm-organization/pulls/122
This commit is contained in:
dxfeng 2023-01-05 14:06:16 +08:00
commit bc8a2a4098
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
String parentDeptS = jobTrees.stream().map(SearchTree::getParentComp).collect(Collectors.joining(","));
if (!StringUtil.isEmpty(parentDeptS)) {
// 兼容SQLServer每次最多in,2100条数据
List<Long> ids = (List<Long>) DeleteParam.builder().ids(parentDeptS).build().getIds();
List<Long> ids = DeleteParam.builder().ids(parentDeptS).build().getIds();
int ceilCount = (int) Math.ceil((double) ids.size() / 1000);
List<DepartmentPO> departmentsByIds = new ArrayList<>();
for (int i = 0; i < ceilCount - 1; i++) {