修改一版
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user