Merge remote-tracking branch 'origin/develop' into feature/ml

This commit is contained in:
Mlin 2023-01-05 14:06:44 +08:00
commit d81776680f
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,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++) {