xiangpei
2024-07-10 182c1cde1f4507d12eb4b6b1a4ffd24a2be6c93b
src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java
@@ -1,9 +1,11 @@
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;
@@ -30,7 +32,7 @@
     */
    List<Question> getAnswerInfo(@Param("questionIds") List<Integer> questionIds);
    List<RandomQuestionDTO> selectBySubject(@Param("subjectId") Integer subjectId, @Param("types") List<Integer> types);
    Integer selectByDifAndSub(RandomQuestionDTO dto);
    /**
     * 获取随机题
@@ -40,5 +42,8 @@
     * @param num 数量
     * @return
     */
    List<Question> getRandomQuestion(@Param("subjectId") Integer subjectId, @Param("questionType") Integer questionType, @Param("num") Integer num);
    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);
}