LearnQuestionsMapper.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.ruoyi.learn.mapper;
  2. import java.util.Collection;
  3. import java.util.List;
  4. import java.util.Map;
  5. import com.ruoyi.learn.domain.LearnQuestions;
  6. import org.apache.ibatis.annotations.Param;
  7. /**
  8. * 试题Mapper接口
  9. *
  10. * @author ruoyi
  11. * @date 2025-09-18
  12. */
  13. public interface LearnQuestionsMapper
  14. {
  15. public List<LearnQuestions> statQuestionTypes(@Param("subjectId") Long subjectId, @Param("knowledgeIds") Collection<Long> knowledgeIds);
  16. /**
  17. * 查询试题
  18. *
  19. * @param id 试题主键
  20. * @return 试题
  21. */
  22. public LearnQuestions selectLearnQuestionsById(Long id);
  23. public List<LearnQuestions> selectLearnQuestionsByIds(Long[] ids);
  24. /**
  25. * 查询试题列表
  26. *
  27. * @param learnQuestions 试题
  28. * @return 试题集合
  29. */
  30. public List<LearnQuestions> selectLearnQuestionsList(LearnQuestions learnQuestions);
  31. /**
  32. * 新增试题
  33. *
  34. * @param learnQuestions 试题
  35. * @return 结果
  36. */
  37. public int insertLearnQuestions(LearnQuestions learnQuestions);
  38. /**
  39. * 修改试题
  40. *
  41. * @param learnQuestions 试题
  42. * @return 结果
  43. */
  44. public int updateLearnQuestions(LearnQuestions learnQuestions);
  45. /**
  46. * 删除试题
  47. *
  48. * @param id 试题主键
  49. * @return 结果
  50. */
  51. public int deleteLearnQuestionsById(Long id);
  52. /**
  53. * 批量删除试题
  54. *
  55. * @param ids 需要删除的数据主键集合
  56. * @return 结果
  57. */
  58. public int deleteLearnQuestionsByIds(Long[] ids);
  59. int updateQuestionType(@Param("qtpye") String qtpye, @Param("ids") Collection<Long> ids);
  60. public List<LearnQuestions> selectQuestionByPaperId(Long paperId);
  61. public List<LearnQuestions> statByKnowledgeType(Map cond);
  62. public List<LearnQuestions> statByKnowledge(Map cond);
  63. public List<LearnQuestions> selectQuestionsForPaper(LearnQuestions cond);
  64. public List<LearnQuestions> selectCollectedList(LearnQuestions questions);
  65. public List<LearnQuestions> selectCollectInfo(Map<String, Object> map);
  66. }