Merge pull request !175 from dxfeng/feature/dxf
This commit is contained in:
dxfeng 2022-08-01 10:35:35 +00:00 committed by Gitee
commit 27e0473a83
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ public class HrmResourceServiceImpl extends Service implements HrmResourceServic
List<Long> ids = (List<Long>) 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++) {
for (int i = 1; i < ceilCount; i++) {
List<Long> longs = PageUtil.subList(i, 1000, ids);
List<DepartmentPO> departmentsById = getDepartmentMapper().getDeptsByIds(longs);
if (CollectionUtils.isNotEmpty(departmentsById)) {