From ccfc11f040691d7359a773ec0f1e4165fffc7783 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 03 十二月 2024 10:40:17 +0800
Subject: [PATCH] 题目导入:题干重复会更新题目信息、答案去掉字符串空格;在线学习文件非必穿

---
 src/main/java/com/mindskip/xzs/repository/QuestionMapper.java |   47 ++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 46 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 e680e85..0cda39f 100644
--- a/src/main/java/com/mindskip/xzs/repository/QuestionMapper.java
+++ b/src/main/java/com/mindskip/xzs/repository/QuestionMapper.java
@@ -1,8 +1,16 @@
 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 com.mindskip.xzs.vo.QuestionSubjectVO;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 
@@ -16,7 +24,44 @@
 
     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<QuestionImportVO> 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);
+
+    /**
+     * 鏌ユ妱棰樺共绗﹀悎鐨勯鐩暟閲�
+     *
+     * @param title
+     * @return
+     */
+    Integer countQuestionByTitle(@Param("title") String title);
+
+    /**
+     * 棰樺共銆佽鐩浉鍚岀殑鏁伴噺
+     *
+     * @param title
+     * @param subjectId
+     * @return
+     */
+    List<QuestionSubjectVO> countQuestionByTitleAndSubject(@Param("title") String title, @Param("subjectId") Integer subjectId);
 }

--
Gitblit v1.8.0