人员筛选接口开发、调整

This commit is contained in:
dxfeng 2023-01-05 14:05:31 +08:00
parent 586330f99e
commit b2500cfbd0
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++) {