From 79ab2cbd31c022916a8e696903d5eb34b70aa403 Mon Sep 17 00:00:00 2001
From: EricsHu <hrr145632>
Date: 星期六, 25 十一月 2023 15:57:07 +0800
Subject: [PATCH] 讨论区关键字过滤、首页班级显示班级信息

---
 src/main/java/com/qxueyou/scc/controller/CoursewareController.java |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/qxueyou/scc/controller/CoursewareController.java b/src/main/java/com/qxueyou/scc/controller/CoursewareController.java
index 640040c..e2ad52f 100644
--- a/src/main/java/com/qxueyou/scc/controller/CoursewareController.java
+++ b/src/main/java/com/qxueyou/scc/controller/CoursewareController.java
@@ -9,10 +9,7 @@
 import com.qxueyou.scc.teach.subject.model.Subject;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
 
 import com.qxueyou.scc.admin.progress.model.Progress;
 import com.qxueyou.scc.admin.progress.service.IProgressService;
@@ -40,6 +37,7 @@
  */
 @Api(tags = "璇句欢绠$悊-绠$悊鍛樼")
 @RestController
+@CrossOrigin(origins="*",maxAge=3600)
 @RequestMapping(value = "teach/courseware")
 public class CoursewareController {
 
@@ -95,7 +93,7 @@
 		return new Result(true, "success",
 				CollectionUtils.newObjectMap("coursewareLst",
 						QBeanUtils.listBean2ListMap(lectures,
-								CollectionUtils.newStringMap("name", "name", "lectureId", "id", "lectureType", "type",
+								CollectionUtils.newStringMap("lectureId","lectureId","name", "name", "resItemId", "id", "lectureType", "type",
 										"chapterId", "chapterId", "status", "status", "updateTime", "updateTime")),
 						"count", lectureCount));
 

--
Gitblit v1.8.0