BUG修复

This commit is contained in:
dxfeng 2022-08-01 18:34:20 +08:00
parent 46ab51ee18
commit 6c91c3d41d
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)) {