xiangpei
2024-05-11 ccca8c65b3c76a9021a471a3667d61d965a4f2cb
src/main/java/com/mindskip/xzs/repository/QuestionSubjectMapper.java
@@ -1,7 +1,9 @@
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;
@@ -13,7 +15,7 @@
     * @param ids
     * @return
     */
    Integer removes(Integer[] ids);
    Integer removes(@Param("ids") Integer[] ids);
    /**
     *
@@ -24,4 +26,14 @@
    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);
}