LearnPaperMapper.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package com.ruoyi.learn.mapper;
  2. import java.util.List;
  3. import com.ruoyi.learn.domain.LearnPaper;
  4. import org.apache.ibatis.annotations.Param;
  5. import org.springframework.web.bind.annotation.RequestParam;
  6. /**
  7. * 试卷Mapper接口
  8. *
  9. * @author ruoyi
  10. * @date 2025-09-18
  11. */
  12. public interface LearnPaperMapper
  13. {
  14. public List<LearnPaper> selectLearnPaperForStudent(@Param("studentId") Long studentId, @Param("status") Integer status);
  15. /**
  16. * 查询试卷
  17. *
  18. * @param id 试卷主键
  19. * @return 试卷
  20. */
  21. public LearnPaper selectLearnPaperById(Long id);
  22. /**
  23. * 查询试卷列表
  24. *
  25. * @param learnPaper 试卷
  26. * @return 试卷集合
  27. */
  28. public List<LearnPaper> selectLearnPaperList(LearnPaper learnPaper);
  29. /**
  30. * 新增试卷
  31. *
  32. * @param learnPaper 试卷
  33. * @return 结果
  34. */
  35. public int insertLearnPaper(LearnPaper learnPaper);
  36. /**
  37. * 修改试卷
  38. *
  39. * @param learnPaper 试卷
  40. * @return 结果
  41. */
  42. public int updateLearnPaper(LearnPaper learnPaper);
  43. /**
  44. * 删除试卷
  45. *
  46. * @param id 试卷主键
  47. * @return 结果
  48. */
  49. public int deleteLearnPaperById(Long id);
  50. /**
  51. * 批量删除试卷
  52. *
  53. * @param ids 需要删除的数据主键集合
  54. * @return 结果
  55. */
  56. public int deleteLearnPaperByIds(Long[] ids);
  57. public List<LearnPaper> selectPapersListFromFavorites(LearnPaper papers);
  58. }