From 8546b3d285af4235a0ef615a0c6e89486ae2c806 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 17 十月 2024 21:01:37 +0800 Subject: [PATCH] 达梦不支持value改为values --- src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java b/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java index c418e3d..721dbd0 100644 --- a/src/main/java/com/ycl/jxkg/mapper/QuestionMapper.java +++ b/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); + } -- Gitblit v1.8.0