This commit is contained in:
he
2023-01-16 09:20:16 +08:00
parent 4480c0189d
commit 8ef9e98833
2 changed files with 3 additions and 3 deletions
@@ -1565,7 +1565,7 @@ namespace IRaCIS.Application.Services
&& (x.IsJudgeQuestion || (x.IsRequired == IsRequired.Required && x.ShowQuestion == ShowQuestion.Show))
).ToListAsync();
var answerQuestionIds = await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId).Select(x => x.ReadingQuestionTrialId).ToListAsync();
var answerQuestionIds = await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId&&!x.Answer.IsNullOrEmpty()).Select(x => x.ReadingQuestionTrialId).ToListAsync();
readingQuestionList = readingQuestionList.Where(x => !answerQuestionIds.Contains(x.Id)).ToList();