功能修改

This commit is contained in:
he
2026-05-07 14:39:50 +08:00
parent f6c9490124
commit f56dcb0cce
11 changed files with 22567 additions and 18 deletions
@@ -476,7 +476,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
QuestionMark.FourthMeasurement,
};
var answers = item.TableQuestionList.Where(x => questionMarks.Contains(x.QuestionMark)).Select(x=>x.Answer).ToList();
if (answers.Count() == 3 && !answers.Any(x => x.IsNullOrEmpty()))
if (answers.Count() == 4 && !answers.Any(x => x.IsNullOrEmpty()))
{
var avgAnswernum= answers.Select(x=>x.IsNullOrEmptyReturn0()).Average(x=>x);
avgAnswer = decimal.Round(avgAnswernum, inDto.DigitPlaces, MidpointRounding.AwayFromZero).ToString("F" + inDto.DigitPlaces.ToString());