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