From 9a00b41cdefc43ac4058f1e4dbbbd3ca81bde5a5 Mon Sep 17 00:00:00 2001 From: 670788339 <670788339@qq.com> Date: Mon, 21 Jul 2025 09:17:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E5=86=85=E7=BD=91=E5=8F=AF=E8=A7=81-?= =?UTF-8?q?=E5=AD=A6=E5=91=98=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xboe/school/study/api/StudyCourseApi.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/servers/boe-server-all/src/main/java/com/xboe/school/study/api/StudyCourseApi.java b/servers/boe-server-all/src/main/java/com/xboe/school/study/api/StudyCourseApi.java index 46fbeb55..524baec3 100644 --- a/servers/boe-server-all/src/main/java/com/xboe/school/study/api/StudyCourseApi.java +++ b/servers/boe-server-all/src/main/java/com/xboe/school/study/api/StudyCourseApi.java @@ -235,8 +235,9 @@ public class StudyCourseApi extends ApiBaseController{ rs.put("sections",sectionlist); rs.put("teachers",teachers); + CommonSearchVo searcher = new CommonSearchVo(); - searcher.setCode("course_warn"); + searcher.setPid(380L); searcher.setType(1); List dicts = thirdApi.getDictItems(searcher); boolean isPermission = false; @@ -244,7 +245,12 @@ public class StudyCourseApi extends ApiBaseController{ isPermission = dicts.contains(course.getOrgId()); } rs.put("isPermission",isPermission); - rs.put("dicts",dicts); + + CommonSearchVo warn = new CommonSearchVo(); + warn.setPid(380L); + warn.setType(1); + List warns = thirdApi.getDictItems(searcher); + rs.put("warn",warns.get(0)); //检查是否已报名 StudyCourse sc=service.findByCourseIdAndAid(cid, aid); if(pass==true && sc==null) {