心灵空间我的课程
This commit is contained in:
@@ -38,8 +38,8 @@ public class PsycheCourseController {
|
||||
wrapper.rightJoin(CourseToPsyche.class,CourseToPsyche::getCourseId,CourseEntity::getId);
|
||||
if (!userVipService.isPsycheVip()){
|
||||
wrapper.leftJoin(UserCourseBuyEntity.class,UserCourseBuyEntity::getCourseId,CourseEntity::getId);
|
||||
}
|
||||
wrapper.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId());
|
||||
}
|
||||
wrapper.selectAll(CourseEntity.class);
|
||||
wrapper.orderByAsc(CourseEntity::getSort);
|
||||
List<CourseEntity> courseList = courseService.list(wrapper);
|
||||
|
||||
Reference in New Issue
Block a user