using YBEE.EQM.Core; namespace YBEE.EQM.Application; /// /// 校考成绩上报管理服务 /// [ApiDescriptionSettings(Name = "exam-org-score-report")] [Route("exam/org/score/report")] public class ExamOrgScoreReportAppService : IDynamicApiController { private readonly IExamOrgScoreReportService _examOrgScoreReportService; public ExamOrgScoreReportAppService(IExamOrgScoreReportService examOrgScoreReportService) { _examOrgScoreReportService = examOrgScoreReportService; } /// /// 上传校考成绩 /// /// /// [RequestSizeLimit(1024 * 1024 * 20)] [RequestFormLimits(MultipartBodyLengthLimit = long.MaxValue)] public async Task Upload([FromForm] UploadExamOrgScoreReportInput input) { return await _examOrgScoreReportService.Upload(input); } /// /// 查询某科目校考成绩上报数据 /// /// /// public async Task QueryOne(QueryExamOrgScoreReportInput input) { return await _examOrgScoreReportService.QueryOne(input); } /// /// 获取机构校考上报明细列表 /// /// /// public async Task> GetListByExamPlanId(int examPlanId) { return await _examOrgScoreReportService.GetListByExamPlanId(examPlanId); } ///// ///// 删除 ///// ///// ///// //public async Task Del(DeleteAttachmentInput input) //{ // await _examOrgScoreReportService.Del(input); //} /// /// 合并学校上报小题分 /// /// /// [AllowAnonymous] public async Task MergeMinorScore(int examPlanId) { var (fileName, fileBytes) = await _examOrgScoreReportService.MergeMinorScore(examPlanId); return new FileContentResult(fileBytes, "application/octet-stream") { FileDownloadName = fileName, }; } }