BUG修复
This commit is contained in:
parent
46ab51ee18
commit
6c91c3d41d
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue