IClazzService.java 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package com.schoolinout.system.service;
  2. import com.schoolinout.system.domain.Clazz;
  3. import com.schoolinout.system.domain.dto.AddClassDto;
  4. import com.schoolinout.system.domain.vo.OptionVo;
  5. import java.util.List;
  6. /**
  7. * 班级管理Service接口
  8. *
  9. * @author sakura
  10. * @date 2024-01-03
  11. */
  12. public interface IClazzService {
  13. /**
  14. * 查询班级管理
  15. *
  16. * @param id 班级管理主键
  17. * @return 班级管理
  18. */
  19. public Clazz selectClazzById(Long id);
  20. public List<OptionVo> selectClazzOptionList(Long schoolId);
  21. /**
  22. * 查询班级管理列表
  23. *
  24. * @param clazz 班级管理
  25. * @return 班级管理集合
  26. */
  27. public List<Clazz> selectClazzList(Clazz clazz);
  28. /**
  29. * 新增班级管理
  30. *
  31. * @param clazz 班级管理
  32. * @return 结果
  33. */
  34. public int insertClazz(Clazz clazz);
  35. /**
  36. * 修改班级管理
  37. *
  38. * @param clazz 班级管理
  39. * @return 结果
  40. */
  41. public int updateClazz(AddClassDto form);
  42. /**
  43. * 批量删除班级管理
  44. *
  45. * @param ids 需要删除的班级管理主键集合
  46. * @return 结果
  47. */
  48. public int deleteClazzByIds(Long[] ids);
  49. /**
  50. * 删除班级管理信息
  51. *
  52. * @param id 班级管理主键
  53. * @return 结果
  54. */
  55. public int deleteClazzById(Long id);
  56. public int saveClassAndRelation(AddClassDto form);
  57. public void handlerClassTeacherRelation(AddClassDto form, Long classId, List<Long> newTeacherIds);
  58. }