From db8242513644b246a30222663ef20e21f1e7c7ce Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期二, 10 六月 2025 09:55:46 +0800 Subject: [PATCH] init --- exam-system/src/main/java/com/gkhy/exam/system/service/ExQuestionService.java | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/exam-system/src/main/java/com/gkhy/exam/system/service/ExQuestionService.java b/exam-system/src/main/java/com/gkhy/exam/system/service/ExQuestionService.java index ef36566..257631c 100644 --- a/exam-system/src/main/java/com/gkhy/exam/system/service/ExQuestionService.java +++ b/exam-system/src/main/java/com/gkhy/exam/system/service/ExQuestionService.java @@ -2,8 +2,11 @@ import com.baomidou.mybatisplus.extension.service.IService; import com.gkhy.exam.common.api.CommonPage; +import com.gkhy.exam.common.api.CommonResult; import com.gkhy.exam.system.domain.ExQuestion; +import org.springframework.web.multipart.MultipartFile; +import java.io.IOException; import java.util.List; import java.util.Map; @@ -60,10 +63,9 @@ /** * 获取题目ID列表 * @param bankId - * @param exerciseType * @return */ - List<Map> getExerciseQuestionList(Long bankId, Integer exerciseType); + List<Map> getExerciseQuestionList(Long bankId); /** * 刷题模式下根据id获取题目 @@ -108,4 +110,13 @@ * @return */ List<Long> getExerciseErrorQuestionList(Long bankId); + + /** + * 根据考卷获取题目列表 + * @param paperId + * @return + */ + List<ExQuestion> selectQuestionByPaperId(Long paperId); + + CommonResult uploadQuestion(MultipartFile file) throws IOException; } -- Gitblit v1.9.2