using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 缺测替补管理服务(用于中心管理) /// [ApiDescriptionSettings(Name = "exam-absent-replace-center")] [Route("exam/absent/replace/center")] public class ExamAbsentReplaceCenterAppService(IExamAbsentReplaceCenterService examAbsentReplaceCenterService) : IDynamicApiController { /// /// 分页查询监测缺测替补列表 /// /// /// public async Task> QueryPageList(ExamAbsentReplacePageInput input) { return await examAbsentReplaceCenterService.QueryPageList(input); } /// /// 获取状态数量 /// /// public async Task> QueryStatusCount(ExamAbsentReplacePageInput input) { return await examAbsentReplaceCenterService.QueryStatusCount(input); } /// /// 导出数据表格(简表) /// /// /// public async Task ExportSimple(ExamAbsentReplacePageInput input) { var (fileName, fileBytes) = await examAbsentReplaceCenterService.ExportSimple(input); return new FileContentResult(fileBytes, "application/octet-stream") { FileDownloadName = fileName, }; } /// /// 导出数据表格(完整) /// /// /// public async Task ExportFull(ExamAbsentReplacePageInput input) { var (fileName, fileBytes) = await examAbsentReplaceCenterService.ExportFull(input); return new FileContentResult(fileBytes, "application/octet-stream") { FileDownloadName = fileName, }; } }