Commit f30097ff authored by wanglianxi's avatar wanglianxi

2020年6月4日09:42:49

parent bdc9eb4f
......@@ -180,7 +180,7 @@ public class ScheduleServiceImpl extends ServiceImpl<ScheduleMapper, Schedule> i
Set<String> nurseIdSet = schedules.stream().map(Schedule::getNurseId).collect(Collectors.toSet());
List<HourStatisticsVO> hourStatisticsVOList = AboutScheduleConverter.calcAttendanceOfHours(schedules, nurseIdSet);
Page<HourStatisticsVO> iPage = new Page<>(query.getCurrent(),query.getSize());
List<HourStatisticsVO> result = hourStatisticsVOList.stream().skip(query.getSize() * query.getCurrent()).limit(query.getSize()).collect(Collectors.toList());
List<HourStatisticsVO> result = hourStatisticsVOList.stream().skip(query.getSize() * (query.getCurrent() - 1)).limit(query.getSize()).collect(Collectors.toList());
iPage.setRecords(result);
return R.data(iPage);
} catch (CommonException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment