| | |
| | | package com.mindskip.xzs.service; |
| | | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.mindskip.xzs.base.RestResponse; |
| | | import com.mindskip.xzs.domain.Question; |
| | | import com.mindskip.xzs.viewmodel.admin.question.ExamQuestionVO; |
| | | import com.mindskip.xzs.viewmodel.admin.question.QuestionEditRequestVM; |
| | | import com.mindskip.xzs.viewmodel.admin.question.QuestionPageRequestVM; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.mindskip.xzs.viewmodel.student.question.answer.QuestionAnswerVO; |
| | | 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.Param; |
| | | |
| | | import java.util.List; |
| | |
| | | List<Question> getAll(); |
| | | |
| | | List<Question> selectByIds(@Param("ids") List<Integer> ids); |
| | | |
| | | /** |
| | | * 题目导出数据 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | List<QuestionImportVO> export(QuestionExportVO query); |
| | | |
| | | /** |
| | | * 题目导出数据 |
| | | * |
| | | * @param query |
| | | * @return |
| | | */ |
| | | List<QuestionImportVO> exportData(QuestionExportVO query); |
| | | |
| | | PageInfo<QuestionPageStudentResponseVM> selectQuestion(QuestionPageStudentRequestVM model); |
| | | |
| | | /** 查出题目主体内容 */ |
| | | RestResponse selectContentById(Integer id); |
| | | |
| | | /** 获取题目答案、解析 */ |
| | | RestResponse getAnswer(Integer id); |
| | | |
| | | /** |
| | | * 查找是否已经存在题干相同的题 |
| | | * |
| | | * @param title |
| | | * @return |
| | | */ |
| | | Integer countQuestionByTitle(String title); |
| | | |
| | | /** |
| | | * 根据题干和课目查找是否存在该题 |
| | | * |
| | | * @param title |
| | | * @param subjectId |
| | | * @return |
| | | */ |
| | | List<QuestionSubjectVO> countQuestionByTitleAndSubject(String title, Integer subjectId); |
| | | } |