修改一版

This commit is contained in:
he
2023-02-13 10:09:15 +08:00
parent 5a50b95987
commit 01c9aeef48
2 changed files with 17 additions and 2 deletions
@@ -704,8 +704,18 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
public async Task<int> GetBaseLineLesionsCount(ReadingCalculateDto inDto)
{
return inDto.QuestionInfo.Where(x => x.LesionType == LesionType.BaselineLesions).SelectMany(x => x.TableRowInfoList)
.Where(x => x.TableQuestionList.Any(y => y.QuestionMark == QuestionMark.State && y.Answer == EvaluationOfState.Exists.GetEnumInt())).Count();
try
{
return (int)(inDto.QuestionInfo.Where(x => x.LesionType == LesionType.BaselineLesions).SelectMany(x => x.TableRowInfoList)
.Sum(x => x.TableQuestionList.Where(y => y.QuestionMark == QuestionMark.LesionNumber).Select(x => x.Answer).FirstOrDefault().IsNullOrEmptyReturn0()));
}
catch
{
return 0;
}
}
#endregion