| | |
| | | package com.ycl.jxkg.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ycl.jxkg.domain.other.KeyValue; |
| | | import com.ycl.jxkg.domain.entity.Question; |
| | | import com.ycl.jxkg.domain.other.KeyValue; |
| | | import com.ycl.jxkg.domain.question.RandomQuestionDTO; |
| | | import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperImportVO; |
| | | import com.ycl.jxkg.domain.vo.admin.exam.QuestionExportVO; |
| | | import com.ycl.jxkg.domain.vo.admin.question.QuestionPageRequestVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | */ |
| | | List<Question> getAnswerInfo(@Param("questionIds") List<Integer> questionIds); |
| | | |
| | | List<RandomQuestionDTO> selectBySubject(@Param("subjectId") Integer subjectId, @Param("types") List<Integer> types); |
| | | Integer selectByDifAndSub(RandomQuestionDTO dto); |
| | | |
| | | /** |
| | | * 获取随机题 |
| | | * |
| | | * @param subjectId 课目 |
| | | * @param questionType 题型 |
| | | * @param num 数量 |
| | | * @return |
| | | */ |
| | | List<Question> getRandomQuestion(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType,@Param("difficult") Integer difficult, @Param("num") Integer num); |
| | | |
| | | List<ExamPaperImportVO> export(@Param("query") QuestionExportVO query); |
| | | |
| | | } |