|
@@ -326,7 +326,7 @@ public class ExamRecordServiceImpl implements ExamRecordService {
|
|
|
});
|
|
|
//查询总数
|
|
|
long total = countExamRecordDetailListForPage(query);
|
|
|
- Pageable pageable = new PageRequest(query.getPageNo() - 1, query.getPageSize());
|
|
|
+ Pageable pageable = PageRequest.of(query.getPageNo() - 1, query.getPageSize());
|
|
|
Page<ExamRecordDataEntity> page = new PageImpl<ExamRecordDataEntity>(examRecordDataList, pageable, total);
|
|
|
return examRecordEntityConvert.of(page);
|
|
|
}
|
|
@@ -512,7 +512,7 @@ public class ExamRecordServiceImpl implements ExamRecordService {
|
|
|
});
|
|
|
//查询总数
|
|
|
long total = countExamRecordListForPage(query);
|
|
|
- Pageable pageable = new PageRequest(query.getPageNo() - 1, query.getPageSize());
|
|
|
+ Pageable pageable = PageRequest.of(query.getPageNo() - 1, query.getPageSize());
|
|
|
|
|
|
Page<ExamRecordDataEntity> page = new PageImpl<ExamRecordDataEntity>(examRecordDataList, pageable, total);
|
|
|
return examRecordEntityConvert.of(page);
|