| | |
| | | package com.mindskip.xzs.repository; |
| | | |
| | | import com.mindskip.xzs.domain.QuestionSubject; |
| | | import com.mindskip.xzs.domain.vo.QuestionVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | |
| | | Integer removeQuestionId(Integer questionId); |
| | | |
| | | Integer removeSubjectId(Integer subjectId); |
| | | |
| | | List<QuestionSubject> getSubject(Integer id); |
| | | |
| | | /** 统计课目的题目数 */ |
| | | Integer countQuestionNum(@Param("subjects") List<Integer> subjects); |
| | | |
| | | /** 随机题目 */ |
| | | List<QuestionVO> getRandomQuestionId(@Param("subjectIds") List<Integer> subjectIds, @Param("questionNum") Integer questionNum); |
| | | } |