|
@@ -48,7 +48,7 @@ public class CourseStatisticConvert {
|
|
|
}
|
|
|
|
|
|
public static Page<CourseStatisticInfo> ofPage(Page<CourseStatistic> page) {
|
|
|
- Pageable pageable = new PageRequest(page.getNumber(), page.getSize());
|
|
|
+ Pageable pageable = PageRequest.of(page.getNumber(), page.getSize());
|
|
|
List<CourseStatistic> entities = page.getContent();
|
|
|
if (entities == null || entities.isEmpty()) {
|
|
|
return new PageImpl<>(Lists.newArrayList(), pageable, page.getTotalElements());
|