From f18c0b3336a10bc36a9e5ca34a03b6d19c34569b Mon Sep 17 00:00:00 2001 From: luohairen <3399054449@qq.com> Date: 星期二, 12 十一月 2024 22:43:01 +0800 Subject: [PATCH] 优化错题详情 --- src/main/java/com/ycl/jxkg/service/QuestionService.java | 38 ++++++++++++++++++++++++++++++++++++-- 1 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/service/QuestionService.java b/src/main/java/com/ycl/jxkg/service/QuestionService.java index ca04006..f24eb9d 100644 --- a/src/main/java/com/ycl/jxkg/service/QuestionService.java +++ b/src/main/java/com/ycl/jxkg/service/QuestionService.java @@ -1,16 +1,22 @@ package com.ycl.jxkg.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.github.pagehelper.PageInfo; +import com.ycl.jxkg.base.Result; import com.ycl.jxkg.domain.entity.Question; +import com.ycl.jxkg.domain.vo.admin.exam.QuestionExportVO; +import com.ycl.jxkg.domain.vo.admin.exam.ExamPaperImportVO; import com.ycl.jxkg.domain.vo.admin.question.QuestionEditRequestVO; import com.ycl.jxkg.domain.vo.admin.question.QuestionPageRequestVO; -import com.github.pagehelper.PageInfo; +import com.ycl.jxkg.domain.vo.admin.question.QuestionResponseVO; +import org.springframework.web.multipart.MultipartFile; +import javax.servlet.http.HttpServletResponse; import java.util.List; public interface QuestionService extends IService<Question> { - PageInfo<Question> page(QuestionPageRequestVO requestVM); + PageInfo<QuestionResponseVO> page(QuestionPageRequestVO requestVM); Question insertFullQuestion(QuestionEditRequestVO model, Integer userId); @@ -23,4 +29,32 @@ Integer selectAllCount(); List<Integer> selectMothCount(); + + /** + * 鏇存柊棰樼洰鐘舵�� + * @param question 棰樼洰 + * @return 鏇存柊缁撴灉 + */ + Boolean updateStatus(QuestionResponseVO question); + + /** + * 棰樼洰瀵煎嚭鏁版嵁 + * @param query 鏌ヨ鏉′欢 + * @return 棰樼洰 + */ + List<ExamPaperImportVO> export(QuestionExportVO query); + + /** + * 瀵煎叆棰樼洰 + * @param file excel + * @return 瀵煎叆缁撴灉 + */ + Result<Boolean> importQuestion(MultipartFile file); + + /** + * 涓嬭浇瀵煎叆棰樼洰妯℃澘 + * @param response 缁撴灉 + */ + void importTemplate(HttpServletResponse response); + } -- Gitblit v1.8.0