DzSchoolMapper.java 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package com.ruoyi.dz.mapper;
  2. import java.util.Collection;
  3. import java.util.List;
  4. import com.ruoyi.dz.domain.DzSchool;
  5. import org.apache.ibatis.annotations.Param;
  6. /**
  7. * 机构校区Mapper接口
  8. *
  9. * @author ruoyi
  10. * @date 2025-09-12
  11. */
  12. public interface DzSchoolMapper
  13. {
  14. /**
  15. * 查询机构校区
  16. *
  17. * @param id 机构校区主键
  18. * @return 机构校区
  19. */
  20. public DzSchool selectDzSchoolById(Long id);
  21. /**
  22. * 查询机构校区列表
  23. *
  24. * @param dzSchool 机构校区
  25. * @return 机构校区集合
  26. */
  27. public List<DzSchool> selectDzSchoolList(DzSchool dzSchool);
  28. public List<DzSchool> selectDzSchoolListByIds(@Param("ids") Collection<Long> ids);
  29. /**
  30. * 新增机构校区
  31. *
  32. * @param dzSchool 机构校区
  33. * @return 结果
  34. */
  35. public int insertDzSchool(DzSchool dzSchool);
  36. /**
  37. * 修改机构校区
  38. *
  39. * @param dzSchool 机构校区
  40. * @return 结果
  41. */
  42. public int updateDzSchool(DzSchool dzSchool);
  43. /**
  44. * 删除机构校区
  45. *
  46. * @param id 机构校区主键
  47. * @return 结果
  48. */
  49. public int deleteDzSchoolById(Long id);
  50. /**
  51. * 批量删除机构校区
  52. *
  53. * @param ids 需要删除的数据主键集合
  54. * @return 结果
  55. */
  56. public int deleteDzSchoolByIds(Long[] ids);
  57. /**
  58. * 校验学校名称是否唯一
  59. *
  60. * @param name 学校名称
  61. * @param id 学校ID(修改时传入,新增时传null)
  62. * @return 学校数量
  63. */
  64. public int checkSchoolName(@Param("name") String name, @Param("id") Long id);
  65. /**
  66. * 根据班级ID列表查询学校信息
  67. *
  68. * @param classIds 班级ID列表
  69. * @return 学校信息列表
  70. */
  71. public List<DzSchool> getDzSchoolByClassIds(@Param("classIds") List<Long> classIds);
  72. }