package com.ruoyi.learn.mapper; import java.util.Collection; import java.util.List; import java.util.Map; import com.ruoyi.learn.domain.LearnQuestions; import org.apache.ibatis.annotations.Param; /** * 试题Mapper接口 * * @author ruoyi * @date 2025-09-18 */ public interface LearnQuestionsMapper { public List statQuestionTypes(@Param("subjectId") Long subjectId, @Param("knowledgeIds") Collection knowledgeIds); /** * 查询试题 * * @param id 试题主键 * @return 试题 */ public LearnQuestions selectLearnQuestionsById(Long id); public List selectLearnQuestionsByIds(Long[] ids); /** * 查询试题列表 * * @param learnQuestions 试题 * @return 试题集合 */ public List selectLearnQuestionsList(LearnQuestions learnQuestions); /** * 新增试题 * * @param learnQuestions 试题 * @return 结果 */ public int insertLearnQuestions(LearnQuestions learnQuestions); /** * 修改试题 * * @param learnQuestions 试题 * @return 结果 */ public int updateLearnQuestions(LearnQuestions learnQuestions); /** * 删除试题 * * @param id 试题主键 * @return 结果 */ public int deleteLearnQuestionsById(Long id); /** * 批量删除试题 * * @param ids 需要删除的数据主键集合 * @return 结果 */ public int deleteLearnQuestionsByIds(Long[] ids); int updateQuestionType(@Param("qtpye") String qtpye, @Param("ids") Collection ids); public List selectQuestionByPaperId(Long paperId); public List statByKnowledgeType(Map cond); public List statByKnowledge(Map cond); public List selectQuestionsForPaper(LearnQuestions cond); public List selectCollectedList(LearnQuestions questions); public List selectCollectInfo(Map map); }