| | |
| | | package com.mindskip.xzs.repository; |
| | | |
| | | import com.mindskip.xzs.domain.QuestionSubject; |
| | | import com.mindskip.xzs.domain.vo.QuestionVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * @param ids |
| | | * @return |
| | | */ |
| | | Integer removes(Integer[] ids); |
| | | Integer removes(@Param("ids") Integer[] ids); |
| | | |
| | | /** |
| | | * |
| | |
| | | Integer saves(List<QuestionSubject> list); |
| | | |
| | | Integer removeQuestionId(Integer questionId); |
| | | |
| | | Integer removeSubjectId(Integer subjectId); |
| | | |
| | | List<QuestionSubject> getSubject(Integer id); |
| | | |
| | | /** 统计课目的题目数 */ |
| | | Integer countQuestionNum(@Param("subjects") List<Integer> subjects); |
| | | |
| | | /** 随机题目 */ |
| | | List<QuestionVO> getRandomQuestionId(@Param("subjectIds") List<Integer> subjectIds, @Param("questionNum") Integer questionNum); |
| | | } |