LearnStudentMapper.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. package com.ruoyi.learn.mapper;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.ruoyi.learn.domain.LearnStudent;
  5. import org.apache.ibatis.annotations.Param;
  6. /**
  7. * 学生Mapper接口
  8. *
  9. * @author ruoyi
  10. * @date 2025-09-18
  11. */
  12. public interface LearnStudentMapper
  13. {
  14. public List<LearnStudent> selectLearnStudentsByMap(Map cond);
  15. public List<LearnStudent> selectClassStudents(@Param("batchId") Long batchId, @Param("classIds") Long[] classIds);
  16. /**
  17. * 查询学生
  18. *
  19. * @param studentId 学生主键
  20. * @return 学生
  21. */
  22. public LearnStudent selectLearnStudentByStudentId(Long studentId);
  23. /**
  24. * 查询学生列表
  25. *
  26. * @param learnStudent 学生
  27. * @return 学生集合
  28. */
  29. public List<LearnStudent> selectLearnStudentList(LearnStudent learnStudent);
  30. /**
  31. * 新增学生
  32. *
  33. * @param learnStudent 学生
  34. * @return 结果
  35. */
  36. public int insertLearnStudent(LearnStudent learnStudent);
  37. /**
  38. * 修改学生
  39. *
  40. * @param learnStudent 学生
  41. * @return 结果
  42. */
  43. public int updateLearnStudent(LearnStudent learnStudent);
  44. /**
  45. * 删除学生
  46. *
  47. * @param studentId 学生主键
  48. * @return 结果
  49. */
  50. public int deleteLearnStudentByStudentId(Long studentId);
  51. /**
  52. * 批量删除学生
  53. *
  54. * @param studentIds 需要删除的数据主键集合
  55. * @return 结果
  56. */
  57. public int deleteLearnStudentByStudentIds(Long[] studentIds);
  58. }