ExamSampleStudentAppService.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 监测抽样学生管理服务
  5. /// </summary>
  6. [ApiDescriptionSettings(Name = "exam-sample-student")]
  7. [Route("exam/sample/student")]
  8. public class ExamSampleStudentAppService : IDynamicApiController
  9. {
  10. private readonly IExamSampleStudentService _examSampleStudentService;
  11. public ExamSampleStudentAppService(IExamSampleStudentService service)
  12. {
  13. _examSampleStudentService = service;
  14. }
  15. /// <summary>
  16. /// 分页查询抽样学生信息
  17. /// </summary>
  18. /// <param name="input"></param>
  19. /// <returns></returns>
  20. public async Task<PageResult<ExamSampleStudentOutput>> QueryPageList(ExamSampleStudentPageInput input)
  21. {
  22. return await _examSampleStudentService.QueryPageList(input);
  23. }
  24. /// <summary>
  25. /// 根据监测号查询已发布监测方案中当前机构下学生信息
  26. /// </summary>
  27. /// <param name="examPlanId">监测计划ID</param>
  28. /// <param name="examNumber">监测号</param>
  29. /// <returns></returns>
  30. public async Task<ExamSampleStudentOutput> GetByExamNumber([FromQuery][Required] int examPlanId, [FromQuery][Required] string examNumber)
  31. {
  32. return await _examSampleStudentService.GetByExamNumber(examPlanId, examNumber);
  33. }
  34. /// <summary>
  35. /// 查询监测学生信息
  36. /// </summary>
  37. /// <param name="input"></param>
  38. /// <returns></returns>
  39. public async Task<ExamSampleStudentOutput> QueryExamSampleStudent(QueryExamSampleStudentInput input)
  40. {
  41. return await _examSampleStudentService.QueryExamSampleStudent(input);
  42. }
  43. }