Merge remote-tracking branch 'origin/release/2.19.1.2501.01' into release/2.19.1.2501.01

This commit is contained in:
钱涛 2025-04-16 14:06:53 +08:00
commit da6364a511
1 changed files with 6 additions and 1 deletions

View File

@ -1425,7 +1425,12 @@ public class SalaryArchiveServiceImpl extends Service implements SalaryArchiveSe
if (CollectionUtils.isEmpty(employeeIds)) { if (CollectionUtils.isEmpty(employeeIds)) {
return Collections.emptyList(); return Collections.emptyList();
} }
return getSalaryArchiveMapper().listPayEndDateIsNull(employeeIds); List<List<Long>> partition = Lists.partition(employeeIds, 500);
List<SalaryArchivePO> resultList = new ArrayList<>();
partition.forEach(part -> {
resultList.addAll(getSalaryArchiveMapper().listPayEndDateIsNull(part));
});
return resultList;
} }
@Override @Override