派生自 projectDept/qhighschool

yn147
2022-11-24 c6dd8423a2ca6e225deb93b78891d5565136cd4b
src/main/java/com/qxueyou/scc/controller/CoursewareController.java
@@ -4,6 +4,7 @@
import java.util.List;
import java.util.Map;
import com.qxueyou.scc.admin.classes.service.IClassLectureService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
@@ -31,7 +32,7 @@
/**
 * 课件控制器
 *
 *
 * @author chenjunliang
 *
 */
@@ -44,6 +45,9 @@
   ILectureService lectureService;
   @Autowired
   IClassLectureService classLectureService;
   @Autowired
   IResService resService;
   @Autowired
@@ -51,7 +55,7 @@
   /**
    * 加载课件tree
    *
    *
    * @param parentId
    *            父节点id
    */
@@ -66,7 +70,7 @@
   /**
    * 获取课件列表
    *
    *
    * @param chapterId
    *            章节id
    * @param type
@@ -97,7 +101,7 @@
   /**
    * 查看课件
    *
    *
    * @param id
    *            课件id
    * @param attribute
@@ -122,7 +126,7 @@
   /**
    * 删除课件
    *
    *
    * @param id
    *            课件ids
    */
@@ -135,7 +139,7 @@
   /**
    * 课件的复制
    *
    *
    * @param id
    *            课件id
    * @param type
@@ -156,7 +160,7 @@
   /**
    * 课件的移动
    *
    *
    * @param id
    *            课件id
    * @param type
@@ -175,7 +179,7 @@
   /**
    * 课件管理 新增下级,同级
    *
    *
    * @param type
    *            (add:新增,edit :编辑)
    * @param chapterId
@@ -186,7 +190,7 @@
    *            名称
    * @param childFlag
    *            是否操作下级
    *
    *
    */
   @PostMapping(value = "addOrUpdateChapter")
   public Result addOrUpdateChapter(String type, String name, String chapterId, String subjectId, boolean childFlag) {
@@ -204,7 +208,7 @@
   /**
    * 课件管理 目录删除
    *
    *
    * @param chapterId
    *            Ŀ¼id
    */
@@ -215,7 +219,7 @@
   /**
    * 添加/更新(视频,讲义,音频)
    *
    *
    * @param name
    *            名称
    * @param coverUrl
@@ -256,7 +260,7 @@
   /**
    * 编辑 获取内容
    *
    *
    * @param id
    *            课件id
    */
@@ -275,7 +279,7 @@
   /**
    * 课件获取资源列表
    *
    *
    * @param dirId
    *            Ŀ¼Id
    * @param limit
@@ -298,12 +302,12 @@
   /**
    * 课件从资源选择后保存
    *
    *
    * @param resId
    *            资源文件id
    * @param sectionId
    *            小节id
    *
    *
    */
   @GetMapping(value = "saveCourseware4Res")
   public Result saveCourseware4Res(String resId, String sectionId) {
@@ -321,7 +325,7 @@
   /**
    * 获取练习成绩列表
    *
    *
    * @param subjectId
    *            课程id
    * @param exerciseId
@@ -330,7 +334,7 @@
    *            每页显示几条
    * @param pageNum
    *            页码
    *
    *
    */
   @GetMapping(value = "lstExerciseScore")
   public Result lstExerciseScore(String subjectId, String exerciseId, Integer pageSize, Integer pageNum) {
@@ -349,7 +353,7 @@
   /**
    * 练习成绩的导出
    *
    *
    * @param subjectId
    *            课程id
    * @param exerciseId练习id