派生自 projectDept/qhighschool

yn147
2023-11-23 42c48ce1d64e941d28c7bfe4093f9659e77bd523
src/main/java/com/qxueyou/scc/school/action/ArticleController.java
@@ -31,7 +31,7 @@
import com.qxueyou.scc.school.service.IArticleService;
/**
 * 文章控制器
 * 文章控制器
 * 
 * @author zhiyong
 * 
@@ -55,10 +55,10 @@
   @Autowired
   private IOrgTextService textService;
   
   //-------------------------------------------------------------app接口-------------------------------------------------------------------------------------------
   //-------------------------------------------------------------app接口-------------------------------------------------------------------------------------------
   
   /**
    * 文章列表
    * 文章列表
    * 
    * @param pager
    * @return
@@ -69,7 +69,7 @@
   }
   
   /**
    * 更新观看进度
    * 更新观看进度
    * 
    * @param articleId
    * @return
@@ -80,7 +80,7 @@
   }
   
   /**
    * 点赞
    * 点赞
    * 
    * @param msgId
    * @return
@@ -91,7 +91,7 @@
   }
   
   /**
    * 新增评论
    * 新增评论
    * 
    * @param msgId
    * @return
@@ -102,7 +102,7 @@
   }
   
   /**
    * 新增评论
    * 新增评论
    * 
    * @param msgId
    * @return
@@ -113,7 +113,7 @@
   }
   
   /**
    * 删除评论
    * 删除评论
    * 
    * @param msgId
    * @param commentId
@@ -126,10 +126,10 @@
   
   
   /**
    *  班级列表数据
    *  班级列表数据
    * URL :/school/article/list
    * 
    * type 1:机构 2:班级
    * type 1:机构 2:班级
    * @return
    */
   @RequestMapping(value = "/class/list", method = RequestMethod.GET)
@@ -138,9 +138,9 @@
      return articleService.queryClassListData();
   }
   
   //-------------------------------------------------------------后台接口-------------------------------------------------------------------------------------------
   //-------------------------------------------------------------后台接口-------------------------------------------------------------------------------------------
   /**
    * 获取机构讲义列表数据
    * 获取机构讲义列表数据
    * 
    * @return
    */
@@ -151,7 +151,7 @@
   }
   
   /**
    *  列表数据
    *  列表数据
    * URL :/school/article/list
    * 
    * @return
@@ -163,10 +163,10 @@
   }
   
   /**
    *  班级列表数据
    *  班级列表数据
    * URL :/school/article/class/addOrUpdate
    * 
    * type 1:机构 2:班级
    * type 1:机构 2:班级
    * @return
    */
   @RequestMapping(value = "/class/addOrUpdate", method = RequestMethod.POST)
@@ -176,10 +176,10 @@
   }
   
   /**
    *  机构列表数据
    *  机构列表数据
    * URL :/school/article/org/addOrUpdate
    * 
    * type 1:机构 2:班级
    * type 1:机构 2:班级
    * @return
    */
   @RequestMapping(value = "/org/addOrUpdate", method = RequestMethod.POST)
@@ -189,10 +189,10 @@
   }
   
   /**
    *  删除班级数据
    *  删除班级数据
    * URL :/school/article/delete
    * 
    * type  班级
    * type  班级
    * @return
    */
   @RequestMapping(value = "/delete", method = RequestMethod.POST)
@@ -203,7 +203,7 @@
   
   
   /**
    * 习题排序
    * 习题排序
    * 
    * @param key
    * @return
@@ -215,7 +215,7 @@
   }
   
   /**
    * 获取机构指定的机构和班级
    * 获取机构指定的机构和班级
    * 
    * @return
    */
@@ -264,7 +264,7 @@
   }
   
   /**
    * 删除讲义信息
    * 删除讲义信息
    * 
    * @return
    */
@@ -272,32 +272,32 @@
   @ResponseBody
   public Result deleteOrg(String articleIds, Integer delAll, String orgIds[], String classIds[]) {
      // 保存到服务器
      // 保存到服务器
      Result result = articleService.deleteOrgArticleIds(articleIds.split(","), delAll, orgIds, classIds);
      // 删除微商项目所有缓存
      // 删除微商项目所有缓存
//      new CacheUtils().deleteWBProjectCacheData();
      
      // 返回结果
      // 返回结果
      return result;
   }
   
   /**
    * 指定讲义数据到某个机构
    * 指定讲义数据到某个机构
    * 
    * @return
    */
   @RequestMapping(value = "orgArticle", method = RequestMethod.GET)
   public @ResponseBody Result orgHandout(String articleId[], String orgId[], String classIds[], String collegeCourseId) {
      
      // 删除微商项目所有缓存
      // 删除微商项目所有缓存
//      new CacheUtils().deleteWBProjectCacheData();
            
      return articleService.insertAppointArticle(articleId, orgId, classIds, collegeCourseId);
   }
   
   /**
    * 预览
    * 预览
    * 
    * @param articleId
    * @param request