This commit is contained in:
he
2024-12-26 14:57:24 +08:00
parent 8c884b3269
commit d74cf15138
2 changed files with 23 additions and 0 deletions
@@ -596,6 +596,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
var tableQuestionList = rowInfo.Where(x=>x.TableQuestionList.Any(x=>x.QuestionMark== QuestionMark.IsMeasurable&& x.Answer.EqEnum(YesOrNoOrNa.Yes))).SelectMany(x => x.TableQuestionList).ToList();
if (tableQuestionList.Count() == 0)
{
return result;
}
result = tableQuestionList.Where(x => x.QuestionMark == QuestionMark.AverageValue).Average(x => x.Answer.IsNullOrEmptyReturn0());
return result;