|
|
@@ -51,11 +51,11 @@ public class CourseServiceImpl implements CourseService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public PageInfo<CourseVO> getHotCourses(Integer currPage, Integer pageSize) {
|
|
|
+ public PageInfo<CourseVO> getHotCourses(Integer currPage, Integer pageSize, Integer uid) {
|
|
|
if(currPage==null || currPage<1) currPage=1;
|
|
|
PageHelper.startPage(currPage, pageSize);
|
|
|
PageInfo<Course> po = new PageInfo<>(courseMapper.selectHotCourses());
|
|
|
- return getCourseVOPageInfo(null, po);
|
|
|
+ return getCourseVOPageInfo(uid, po);
|
|
|
}
|
|
|
|
|
|
@Override
|