派生自 projectDept/qhighschool

yn147
2023-11-24 d7963a84282c548fee3595b3343e6ae6ca49bb29
src/main/java/com/qxueyou/scc/controller/SubjectController.java
@@ -177,8 +177,8 @@
    *            课程介绍
    */
   @PostMapping(value = "/copy")
   public Result copy(String subjectId, String subjectName, String imgPath, String content,int type) {
      return add(subjectName, imgPath, content,type);
   public Result copy(String subjectId, String subjectName, String imgPath, String content,int type,String startTime,String endTime) {
      return add(subjectName, imgPath, content,type,startTime,endTime);
   }
   /**
@@ -193,7 +193,7 @@
    * @return
    */
   @PostMapping(value = "/add")
   public Result add(String subjectName, String imgPath, String content,int type) {
   public Result add(String subjectName, String imgPath, String content,int type,String startTime,String endTime) {
      String contentFileId = null;
      
      if(StringUtils.isNotEmpty(content)){
@@ -207,7 +207,7 @@
         coverPageFileId = fileService.readIdByPath(imgPath);
      }
      
      return subjectService.add(subjectName, coverPageFileId,contentFileId,type);
      return subjectService.add(subjectName, coverPageFileId,contentFileId,type,startTime,endTime);
   }
   /**