From c5c10c1bb95f5bb7fdc8b714c5c998e78c26e0f7 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 09 七月 2024 09:47:43 +0800 Subject: [PATCH] feat:标签新增、下拉增加部门id --- src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java b/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java index 3d4a8a2..e7bde69 100644 --- a/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java +++ b/src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java @@ -32,7 +32,7 @@ List<QuestionSubject> getSubject(Integer id); /** 缁熻璇剧洰鐨勯鐩暟 */ - Integer countQuestionNum(@Param("subjects") List<Integer> subjects); + Integer countQuestionNum(@Param("subjects") List<Integer> subjects, @Param("questionType") Integer questionType); /** 闅忔満棰樼洰 */ List<QuestionVO> getRandomQuestionId(@Param("subjectIds") List<Integer> subjectIds, @Param("questionType") Integer questionType, @Param("questionNum") Integer questionNum); @@ -45,4 +45,10 @@ /** 鏍规嵁璇剧洰鍜岄鍨嬫煡璇㈤鐩甀D */ List<Integer> questionsBySubjectIdAndQuestionType(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType); + + /** 鏍规嵁璇剧洰ID鏌ヨ棰樼洰璇︽儏 */ + List<QuestionVO> bySubjectId(@Param("subjectId") Integer subjectId); + + /** 鏍规嵁璇剧洰鍜岄鍨嬫煡鎵鹃鐩暟鎹� */ + List<QuestionVO> bySubjectIdAndQuestionType(Integer subjectId, Integer dataBaseValueByValue); } -- Gitblit v1.8.0