修复考勤引用查看报错
This commit is contained in:
parent
4158f9f708
commit
400d22cc93
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue