ISchoolClassService.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 学校班级信息管理服务
  5. /// </summary>
  6. public interface ISchoolClassService
  7. {
  8. /// <summary>
  9. /// 添加学校班级
  10. /// </summary>
  11. /// <param name="input"></param>
  12. /// <returns></returns>
  13. Task Add(AddSchoolClassInput input);
  14. /// <summary>
  15. /// 批量添加学校班级
  16. /// </summary>
  17. /// <param name="input"></param>
  18. /// <returns></returns>
  19. Task BatchAdd(BatchAddSchoolClassInput input);
  20. /// <summary>
  21. /// 获取批量导入班级ID
  22. /// </summary>
  23. /// <param name="input"></param>
  24. /// <returns></returns>
  25. Task<Dictionary<short, long>> GetImportSchoolClassList(ImportSchoolClassInput input);
  26. /// <summary>
  27. /// 获取班级信息
  28. /// </summary>
  29. /// <param name="sysOrgId"></param>
  30. /// <param name="sysOrgBranchId"></param>
  31. /// <param name="examGrade"></param>
  32. /// <param name="classNumber"></param>
  33. /// <returns></returns>
  34. Task<SchoolClassLiteOutput> GetSchoolClass(short sysOrgId, short? sysOrgBranchId, ExamGradeOutput examGrade, short classNumber);
  35. /// <summary>
  36. /// 获取班级ID
  37. /// </summary>
  38. /// <param name="educationStage">学段</param>
  39. /// <param name="sysOrgId">机构ID</param>
  40. /// <param name="gradeBeginYear">开始年份</param>
  41. /// <param name="classNumber">班号</param>
  42. /// <returns></returns>
  43. long GetSchoolClassId(EducationStage educationStage, short sysOrgId, short gradeBeginYear, short classNumber);
  44. /// <summary>
  45. /// 根据ID获取学校班级信息
  46. /// </summary>
  47. /// <param name="id"></param>
  48. /// <returns></returns>
  49. Task<SchoolClassOutput> GetById(long id);
  50. /// <summary>
  51. /// 根据级获取学校班级列表
  52. /// </summary>
  53. /// <param name="gradeBeginYear"></param>
  54. /// <returns></returns>
  55. Task<List<SchoolClassOutput>> GetListByGradeBeginYear(short gradeBeginYear);
  56. /// <summary>
  57. /// 分页查询班级列表
  58. /// </summary>
  59. /// <param name="input"></param>
  60. /// <returns></returns>
  61. Task<PageResult<SchoolClassOutput>> QueryPageList(SchoolClassPageInput input);
  62. }