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 org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; @Mapper public interface QuestionMapper extends BaseMapper { List page(QuestionPageRequestVM requestVM); List selectByIds(@Param("ids") List ids); List getVoByIds(@Param("ids") List ids); Integer selectAllCount(); List selectCountByDate(@Param("startTime") Date startTime,@Param("endTime") Date endTime); List getAll(); /** * 查询导出数据 * * @param query * @return */ List exportData(@Param("query") QuestionExportVO query); List export(@Param("query") QuestionExportVO query); List selectQuestion(QuestionPageStudentRequestVM model); QuestionVO selectContentById(Integer id); QuestionVO getAnswer(Integer id); /** * 查抄题干符合的题目数量 * * @param title * @return */ Integer countQuestionByTitle(@Param("title") String title); }