修改一版

Uat_Study
he 2023-02-13 10:09:15 +08:00
parent 5a50b95987
commit 01c9aeef48
2 changed files with 17 additions and 2 deletions

View File

@ -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

View File

@ -1011,6 +1011,11 @@ namespace IRaCIS.Core.Domain.Share
/// 所在部位
/// </summary>
Part = 8,
/// <summary>
/// 病灶数量
/// </summary>
LesionNumber=11,
}
/// <summary>