心灵空间我的课程

This commit is contained in:
wuchunlei
2025-02-25 18:02:38 +08:00
parent 4bc47fc4ff
commit a55036941b

View File

@@ -38,8 +38,8 @@ public class PsycheCourseController {
wrapper.rightJoin(CourseToPsyche.class,CourseToPsyche::getCourseId,CourseEntity::getId); wrapper.rightJoin(CourseToPsyche.class,CourseToPsyche::getCourseId,CourseEntity::getId);
if (!userVipService.isPsycheVip()){ if (!userVipService.isPsycheVip()){
wrapper.leftJoin(UserCourseBuyEntity.class,UserCourseBuyEntity::getCourseId,CourseEntity::getId); wrapper.leftJoin(UserCourseBuyEntity.class,UserCourseBuyEntity::getCourseId,CourseEntity::getId);
wrapper.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId());
} }
wrapper.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId());
wrapper.selectAll(CourseEntity.class); wrapper.selectAll(CourseEntity.class);
wrapper.orderByAsc(CourseEntity::getSort); wrapper.orderByAsc(CourseEntity::getSort);
List<CourseEntity> courseList = courseService.list(wrapper); List<CourseEntity> courseList = courseService.list(wrapper);