From a55036941bff096923f4cb3238caf1288381de65 Mon Sep 17 00:00:00 2001 From: wuchunlei Date: Tue, 25 Feb 2025 18:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=83=E7=81=B5=E7=A9=BA=E9=97=B4=E6=88=91?= =?UTF-8?q?=E7=9A=84=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/psyche/controller/PsycheCourseController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/peanut/modules/psyche/controller/PsycheCourseController.java b/src/main/java/com/peanut/modules/psyche/controller/PsycheCourseController.java index 41c5aec6..cdde95cb 100644 --- a/src/main/java/com/peanut/modules/psyche/controller/PsycheCourseController.java +++ b/src/main/java/com/peanut/modules/psyche/controller/PsycheCourseController.java @@ -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.eq(UserCourseBuyEntity::getUserId,ShiroUtils.getUId()); wrapper.selectAll(CourseEntity.class); wrapper.orderByAsc(CourseEntity::getSort); List courseList = courseService.list(wrapper);