ILearnWrongBookService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.ruoyi.learn.service;
  2. import java.util.Date;
  3. import java.util.List;
  4. import java.util.Map;
  5. import com.google.common.collect.Lists;
  6. import com.google.common.collect.Maps;
  7. import com.ruoyi.common.utils.SecurityUtils;
  8. import com.ruoyi.common.utils.StringUtils;
  9. import com.ruoyi.dz.domain.DzSubject;
  10. import com.ruoyi.learn.domain.LearnWrongBook;
  11. /**
  12. * 学生错题本Service接口
  13. *
  14. * @author ruoyi
  15. * @date 2025-09-25
  16. */
  17. public interface ILearnWrongBookService
  18. {
  19. /**
  20. * 查询学生错题本
  21. *
  22. * @param wrongId 学生错题本主键
  23. * @return 学生错题本
  24. */
  25. public LearnWrongBook selectLearnWrongBookByWrongId(Long wrongId);
  26. /**
  27. * 查询学生错题本列表
  28. *
  29. * @param learnWrongBook 学生错题本
  30. * @return 学生错题本集合
  31. */
  32. public List<LearnWrongBook> selectLearnWrongBookList(LearnWrongBook learnWrongBook);
  33. /**
  34. * 新增学生错题本
  35. *
  36. * @param learnWrongBook 学生错题本
  37. * @return 结果
  38. */
  39. public int insertLearnWrongBook(LearnWrongBook learnWrongBook);
  40. /**
  41. * 修改学生错题本
  42. *
  43. * @param learnWrongBook 学生错题本
  44. * @return 结果
  45. */
  46. public int updateLearnWrongBook(LearnWrongBook learnWrongBook);
  47. /**
  48. * 批量删除学生错题本
  49. *
  50. * @param wrongIds 需要删除的学生错题本主键集合
  51. * @return 结果
  52. */
  53. public int deleteLearnWrongBookByWrongIds(Long[] wrongIds);
  54. /**
  55. * 删除学生错题本信息
  56. *
  57. * @param wrongId 学生错题本主键
  58. * @return 结果
  59. */
  60. public int deleteLearnWrongBookByWrongId(Long wrongId);
  61. public List<DzSubject> findSubject();
  62. public List<LearnWrongBook> findWrongQuestions(Long subjectId, Date start, Date end);
  63. public List<LearnWrongBook> findWrongExaminees(Long wrongId);
  64. public int deleteByQuestion(Long studentId, Long questionId);
  65. }