Uat_Study
hang 2023-03-22 11:38:35 +08:00
commit bf8938ea31
1 changed files with 46 additions and 34 deletions

View File

@ -205,12 +205,26 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
// 这里统一处理字典
var dictionaryGroup = result.VisitTaskList.ToDictionary(x => x.VisitTaskId, x => x.CrterionDictionaryGroup);
Dictionary<Guid,List<CrterionDictionaryGroup>> dictionaryGroup = result.VisitTaskList.ToDictionary(x => x.VisitTaskId, x => x.CrterionDictionaryGroup);
result.TaskQuestions.ForEach(y =>
{
SetCrterionDictionaryGroup(y, dictionaryGroup);
});
y.Answer.ForEach(z =>
return result;
}
else
{
return new GetReadingReportEvaluationOutDto();
}
}
public void SetCrterionDictionaryGroup(ReadingReportDto item, Dictionary<Guid, List<CrterionDictionaryGroup>> dictionaryGroup)
{
item.Answer.ForEach(z =>
{
try
{
@ -222,16 +236,14 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
}
});
item.Childrens.ForEach(x => {
SetCrterionDictionaryGroup(x, dictionaryGroup);
});
}
return result;
}
else
{
return new GetReadingReportEvaluationOutDto();
}
}
/// <summary>