| | |
| | | package com.mindskip.xzs.repository; |
| | | |
| | | 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; |
| | | |
| | |
| | | List<Question> page(QuestionPageRequestVM requestVM); |
| | | |
| | | List<Question> selectByIds(@Param("ids") List<Integer> ids); |
| | | |
| | | List<QuestionVO> getVoByIds(@Param("ids") List<Integer> ids); |
| | | |
| | | Integer selectAllCount(); |
| | |
| | | |
| | | 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); |
| | | |
| | | String getAnswer(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); |
| | | } |