修改一版

This commit is contained in:
he
2022-07-15 10:01:08 +08:00
parent f5cef1fa7a
commit 7ca2c70108
2 changed files with 8 additions and 0 deletions
@@ -217,6 +217,9 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public Guid ReadingQuestionCriterionTrialId { get; set; }
public Guid? VisitTaskId { get; set; }
public FormType? FormType { get; set; }
}
/// <summary>
@@ -351,6 +351,11 @@ namespace IRaCIS.Application.Services
var formType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.ReadingQuestionCriterionTrialId).Select(x => x.FormType).FirstOrDefaultAsync();
var groupList = new List<GetTrialReadingQuestionOutDto>();
if (inDto.FormType != null)
{
formType = inDto.FormType.Value;
}
if (formType == FormType.MultiplePage)
{
qusetionList = qusetionList.Where(x => x.ReadingCriterionPageId != null).ToList();