From b068eccf3bd46d7ff835018637a3a92eb1b36182 Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Mon, 12 Dec 2022 13:01:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jlw/web/TeacherOpenCourseMergeStudentController.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseMergeStudentController.java b/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseMergeStudentController.java index 8a64b7d5..fffe2a59 100644 --- a/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseMergeStudentController.java +++ b/web/src/main/java/com/ibeetl/jlw/web/TeacherOpenCourseMergeStudentController.java @@ -30,6 +30,8 @@ import org.springframework.web.servlet.ModelAndView; import javax.validation.constraints.NotNull; import java.util.List; +import static cn.jlw.util.CacheUserUtil.getStudent; + /** * 开课关联学生 课程开课-关联-学生 接口 * 切记不要对非线程安全的静态变量进行写操作 @@ -57,6 +59,9 @@ public class TeacherOpenCourseMergeStudentController{ return JsonResult.failMessage("请登录后再操作"); }else{ PageQuery page = condition.getPageQuery(); + if (coreUser.isStudent()) { + condition.setStudentId(getStudent().getStudentId()); + } teacherOpenCourseMergeStudentService.queryByConditionQuery(page); return JsonResult.success(page); }