派生自 projectDept/qhighschool

Administrator
2022-12-02 b968e4a5a2e374d6eec36113e56d02565a57865c
src/main/java/com/qxueyou/scc/controller/CoursewareController.java
@@ -4,6 +4,9 @@
import java.util.List;
import java.util.Map;
import com.qxueyou.scc.admin.classes.model.ClsClassReSubject;
import com.qxueyou.scc.admin.classes.service.IClassLectureService;
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;
@@ -31,7 +34,7 @@
/**
 * 课件控制器
 *
 *
 * @author chenjunliang
 *
 */
@@ -44,6 +47,9 @@
   ILectureService lectureService;
   @Autowired
   IClassLectureService classLectureService;
   @Autowired
   IResService resService;
   @Autowired
@@ -51,7 +57,7 @@
   /**
    * 加载课件tree
    *
    *
    * @param parentId
    *            父节点id
    */
@@ -66,7 +72,7 @@
   /**
    * 获取课件列表
    *
    *
    * @param chapterId
    *            章节id
    * @param type
@@ -97,7 +103,7 @@
   /**
    * 查看课件
    *
    *
    * @param id
    *            课件id
    * @param attribute
@@ -122,20 +128,22 @@
   /**
    * 删除课件
    *
    *
    * @param id
    *            课件ids
    */
   @GetMapping(value = "deleteCourseware")
   public Result deleteCourseware(String id) {
      return lectureService.deleteLecture(id.split(","));
      Result result = lectureService.deleteLecture(id.split(","));
      lectureService.deleteLectureLoad(id.split(","));
      return result;
   }
   /**
    * 课件的复制
    *
    *
    * @param id
    *            课件id
    * @param type
@@ -156,7 +164,7 @@
   /**
    * 课件的移动
    *
    *
    * @param id
    *            课件id
    * @param type
@@ -175,7 +183,7 @@
   /**
    * 课件管理 新增下级,同级
    *
    *
    * @param type
    *            (add:新增,edit :编辑)
    * @param chapterId
@@ -186,7 +194,7 @@
    *            名称
    * @param childFlag
    *            是否操作下级
    *
    *
    */
   @PostMapping(value = "addOrUpdateChapter")
   public Result addOrUpdateChapter(String type, String name, String chapterId, String subjectId, boolean childFlag) {
@@ -204,7 +212,7 @@
   /**
    * 课件管理 目录删除
    *
    *
    * @param chapterId
    *            Ŀ¼id
    */
@@ -215,7 +223,7 @@
   /**
    * 添加/更新(视频,讲义,音频)
    *
    *
    * @param name
    *            名称
    * @param coverUrl
@@ -256,7 +264,7 @@
   /**
    * 编辑 获取内容
    *
    *
    * @param id
    *            课件id
    */
@@ -275,7 +283,7 @@
   /**
    * 课件获取资源列表
    *
    *
    * @param dirId
    *            Ŀ¼Id
    * @param limit
@@ -298,12 +306,12 @@
   /**
    * 课件从资源选择后保存
    *
    *
    * @param resId
    *            资源文件id
    * @param sectionId
    *            小节id
    *
    *
    */
   @GetMapping(value = "saveCourseware4Res")
   public Result saveCourseware4Res(String resId, String sectionId) {
@@ -315,13 +323,14 @@
         result = lectureService.addLecture(sectionId, resId_);
         successCount = result.isSuccess() ? 1 : 0;
      }
      lectureService.addLectureLoad(sectionId);
      return new Result(true, null, successCount);
   }
   /**
    * 获取练习成绩列表
    *
    *
    * @param subjectId
    *            课程id
    * @param exerciseId
@@ -330,7 +339,7 @@
    *            每页显示几条
    * @param pageNum
    *            页码
    *
    *
    */
   @GetMapping(value = "lstExerciseScore")
   public Result lstExerciseScore(String subjectId, String exerciseId, Integer pageSize, Integer pageNum) {
@@ -349,7 +358,7 @@
   /**
    * 练习成绩的导出
    *
    *
    * @param subjectId
    *            课程id
    * @param exerciseId练习id