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/service/QuestionService.java | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/service/QuestionService.java b/src/main/java/com/mindskip/xzs/service/QuestionService.java index 7532cdc..61f2904 100644 --- a/src/main/java/com/mindskip/xzs/service/QuestionService.java +++ b/src/main/java/com/mindskip/xzs/service/QuestionService.java @@ -12,6 +12,7 @@ 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.Param; import java.util.List; @@ -51,7 +52,7 @@ * @param query * @return */ - List<QuestionExportData> exportData(QuestionExportVO query); + List<QuestionImportVO> exportData(QuestionExportVO query); PageInfo<QuestionPageStudentResponseVM> selectQuestion(QuestionPageStudentRequestVM model); @@ -61,4 +62,20 @@ /** 鑾峰彇棰樼洰绛旀銆佽В鏋� */ RestResponse getAnswer(Integer id); + /** + * 鏌ユ壘鏄惁宸茬粡瀛樺湪棰樺共鐩稿悓鐨勯 + * + * @param title + * @return + */ + Integer countQuestionByTitle(String title); + + /** + * 鏍规嵁棰樺共鍜岃鐩煡鎵炬槸鍚﹀瓨鍦ㄨ棰� + * + * @param title + * @param subjectId + * @return + */ + List<QuestionSubjectVO> countQuestionByTitleAndSubject(String title, Integer subjectId); } -- Gitblit v1.8.0