修复考勤引用查看报错

This commit is contained in:
Harryxzy 2024-02-20 10:06:17 +08:00
parent 4158f9f708
commit 400d22cc93
1 changed files with 8 additions and 4 deletions

View File

@ -37,11 +37,15 @@ public class AttendQuoteDataValueBiz {
AttendQuoteDataValueMapper mapper = sqlSession.getMapper(AttendQuoteDataValueMapper.class);
List<Long> employeeIds = param.getEmployeeIds();
List<List<Long>> partition = Lists.partition(employeeIds, 100);
partition.forEach(empIds -> {
param.setEmployeeIds(empIds);
if (CollectionUtils.isNotEmpty(employeeIds)) {
List<List<Long>> partition = Lists.partition(employeeIds, 100);
partition.forEach(empIds -> {
param.setEmployeeIds(empIds);
list.addAll(mapper.listSome(param));
});
} else {
list.addAll(mapper.listSome(param));
});
}
} finally {
sqlSession.close();
}