From 78b94b6a8eb94af251450a89b1f133e92423ec84 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 02 七月 2024 15:19:11 +0800 Subject: [PATCH] 题目导入导出 --- src/main/java/com/mindskip/xzs/repository/QuestionMapper.java | 29 ++++++++++++++++++++++++++++- 1 files changed, 28 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/repository/QuestionMapper.java b/src/main/java/com/mindskip/xzs/repository/QuestionMapper.java index 9aeea04..854d04c 100644 --- a/src/main/java/com/mindskip/xzs/repository/QuestionMapper.java +++ b/src/main/java/com/mindskip/xzs/repository/QuestionMapper.java @@ -1,8 +1,15 @@ package com.mindskip.xzs.repository; -import com.mindskip.xzs.domain.other.KeyValue; import com.mindskip.xzs.domain.Question; +import com.mindskip.xzs.domain.Subject; +import com.mindskip.xzs.domain.other.KeyValue; +import com.mindskip.xzs.domain.vo.QuestionVO; import com.mindskip.xzs.viewmodel.admin.question.QuestionPageRequestVM; +import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentRequestVM; +import com.mindskip.xzs.viewmodel.student.question.answer.QuestionPageStudentResponseVM; +import com.mindskip.xzs.vo.QuestionExportData; +import com.mindskip.xzs.vo.QuestionExportVO; +import com.mindskip.xzs.vo.QuestionImportVO; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @@ -15,10 +22,30 @@ List<Question> page(QuestionPageRequestVM requestVM); List<Question> selectByIds(@Param("ids") List<Integer> ids); + List<QuestionVO> getVoByIds(@Param("ids") List<Integer> ids); Integer selectAllCount(); List<KeyValue> selectCountByDate(@Param("startTime") Date startTime,@Param("endTime") Date endTime); List<Question> getAll(); + + /** + * 鏌ヨ瀵煎嚭鏁版嵁 + * + * @param query + * @return + */ + List<QuestionExportData> exportData(@Param("query") QuestionExportVO query); + + List<QuestionImportVO> export(@Param("query") QuestionExportVO query); + + List<QuestionPageStudentResponseVM> selectQuestion(QuestionPageStudentRequestVM model); + + QuestionVO selectContentById(Integer id); + + QuestionVO getAnswer(Integer id); + + + } -- Gitblit v1.8.0