提交 1bcd13ac authored 作者: jiashixiong's avatar jiashixiong

前台公共资源接口添加查询专家

上级 821c334d
...@@ -66,7 +66,7 @@ public class ExamPaperLibraryController { ...@@ -66,7 +66,7 @@ public class ExamPaperLibraryController {
*/ */
@ApiOperation(value = "获取分类下试卷列表") @ApiOperation(value = "获取分类下试卷列表")
@GetMapping("/get/exampaper/list") @GetMapping("/get/exampaper/list")
public CallBack<PageInfo<BgExampaperLibraryVo>> getExampaperList(PageParam pageParam, Integer dtid ,String resourcId){ public CallBack<PageInfo<BgExampaperLibraryVo>> getExampaperList(PageParam pageParam, List<Integer> dtid ,String resourcId){
return CallBack.success(service.getExampaperList(pageParam,dtid,resourcId)); return CallBack.success(service.getExampaperList(pageParam,dtid,resourcId));
} }
......
...@@ -31,10 +31,10 @@ public interface ExamPaperLibraryMapper extends BaseMapper<ExamPaperLibrary>{ ...@@ -31,10 +31,10 @@ public interface ExamPaperLibraryMapper extends BaseMapper<ExamPaperLibrary>{
+" from res_exampaper_library_diy_type a" +" from res_exampaper_library_diy_type a"
+" LEFT JOIN res_exampaper_library b ON a.epid = b.id" +" LEFT JOIN res_exampaper_library b ON a.epid = b.id"
+" WHERE 1=1" +" WHERE 1=1"
+" eq(a.dtid,id)" +" in(a.dtid,id)"
+" order by createtime desc " +" order by createtime desc "
+"</script>") +"</script>")
List<BgExampaperLibraryVo> getExampaperList(@Param("id") Integer id); List<BgExampaperLibraryVo> getExampaperList(@Param("id")List<Integer> id);
@Select("<script>" @Select("<script>"
+ "select questionType,count(id) num from res_exampaperinfo where exampaperid=#{exampaperId} group by questiontype" + "select questionType,count(id) num from res_exampaperinfo where exampaperid=#{exampaperId} group by questiontype"
......
...@@ -35,7 +35,7 @@ public interface ExamPaperLibraryService extends BaseService<ExamPaperLibrary, I ...@@ -35,7 +35,7 @@ public interface ExamPaperLibraryService extends BaseService<ExamPaperLibrary, I
* @author: Jsx * @author: Jsx
* @date: 2020/12/8 17:11 * @date: 2020/12/8 17:11
*/ */
PageInfo<BgExampaperLibraryVo> getExampaperList(PageParam pageParam, Integer dtid,String resourcId); PageInfo<BgExampaperLibraryVo> getExampaperList(PageParam pageParam, List<Integer> dtid,String resourcId);
/** /**
* 课程下添加试卷 * 课程下添加试卷
......
...@@ -114,7 +114,7 @@ public class ExamPaperLibraryServiceImpl extends BaseServiceImpl<ExamPaperLibrar ...@@ -114,7 +114,7 @@ public class ExamPaperLibraryServiceImpl extends BaseServiceImpl<ExamPaperLibrar
* @return * @return
*/ */
@Override @Override
public PageInfo<BgExampaperLibraryVo> getExampaperList(PageParam pageParam, Integer dtid,String resourcId){ public PageInfo<BgExampaperLibraryVo> getExampaperList(PageParam pageParam, List<Integer> dtid,String resourcId){
startPage(pageParam); startPage(pageParam);
List<BgExampaperLibraryVo> list = mapper.getExampaperList(dtid); List<BgExampaperLibraryVo> list = mapper.getExampaperList(dtid);
List<Integer> ids = diyTypeManage.getCourseExampaperIds(resourcId); List<Integer> ids = diyTypeManage.getCourseExampaperIds(resourcId);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论