IRC_NewDev
he 2024-03-27 13:29:58 +08:00
parent f1a141c018
commit e2f5a7fae1
1 changed files with 4 additions and 0 deletions

View File

@ -2474,6 +2474,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var baseLineTaskId = await GetBaseLineTaskId(inDto);
var PET5PS = inDto.QuestionInfo.Where(x => x.QuestionType == QuestionType.PET5PS).Select(x => x.Answer).FirstOrDefault().IsNullOrEmptyReturn0();
if (PET5PS == 0)
{
return string.Empty;
}
var baseLinePET5PS = (await _readingTaskQuestionAnswerRepository.Where(x => x.VisitTaskId == baseLineTaskId && x.ReadingQuestionTrial.QuestionType == QuestionType.PET5PS).Select(x => x.Answer).FirstOrDefaultAsync()).IsNullOrEmptyReturn0();