BUG修复

pull/175/MERGE^2
dxfeng 3 years ago
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…
Cancel
Save