using YBEE.EQM.Core;
namespace YBEE.EQM.Application;
///
/// 家长问卷填答进度管理服务
///
[ApiDescriptionSettings(Name = "exam-patriarch-questionnaire-progress")]
[Route("exam/patriarch/questionnaire/progress")]
public class ExamPatriarchQuestionnaireProgressAppService : IDynamicApiController
{
private readonly IExamPatriarchQuestionnaireProgressService _examPatriarchQuestionnaireProgressService;
public ExamPatriarchQuestionnaireProgressAppService(IExamPatriarchQuestionnaireProgressService examPatriarchQuestionnaireProgressService)
{
_examPatriarchQuestionnaireProgressService = examPatriarchQuestionnaireProgressService;
}
///
/// 查询学生家长问卷明细
///
///
///
public async Task> QueryPageList(ExamStudentPatriarchQuestionnaireProgressPageInput input)
{
return await _examPatriarchQuestionnaireProgressService.QueryPageList(input);
}
///
/// 导出未填答学生名单
///
///
///
public async Task ExportUncompletedExcel(ExportExamPatriarchQuestionnaireProgressInput input)
{
var bs = await _examPatriarchQuestionnaireProgressService.ExportUncompletedExcel(input);
return new FileContentResult(bs, "application/octet-stream")
{
FileDownloadName = "学生家长问卷未填答名单.xlsx",
};
}
///
/// 获取各班级问卷填答进度
///
///
///
public async Task> GetProgressList([FromQuery][Required] int examPlanId)
{
return await _examPatriarchQuestionnaireProgressService.GetProgressList(examPlanId);
}
}