This commit is contained in:
he
2023-06-05 14:57:49 +08:00
parent f9b52f9433
commit 2d651ca51d
2 changed files with 21 additions and 2 deletions
@@ -399,7 +399,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
/// <param name="visitTaskId"></param>
/// <param name="type"></param>
/// <returns></returns>
[HttpPost]
[HttpGet]
public async Task TestCalculate(Guid visitTaskId, QuestionType? type)
{
//_logger.LogError("测试计算");
@@ -1761,7 +1761,7 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
compareTaskList.ForEach(x =>
{
x.TargetAssessmentIsIUorIC = answers.Any(x => questionType == QuestionType.TargetLesion && (x.Answer == TargetAssessment.iUPD.GetEnumInt() || x.Answer == TargetAssessment.iCPD.GetEnumInt()));
x.NewTargetLesionAssessmentIsIUorIC = answers.Any(x => questionType == QuestionType.TargetLesion && (x.Answer == NewTargetLesionAssessment.iUPD.GetEnumInt() || x.Answer == NewTargetLesionAssessment.iCPD.GetEnumInt()));
x.NewTargetLesionAssessmentIsIUorIC = answers.Any(x => questionType == QuestionType.NewTargetLesion && (x.Answer == NewTargetLesionAssessment.iUPD.GetEnumInt() || x.Answer == NewTargetLesionAssessment.iCPD.GetEnumInt()));
});
}
@@ -1772,6 +1772,10 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
Guid? compareTaskId = null;
if(compareTaskList.Count()==0)
{
return compareTaskId;
}
int index = 0;
switch (questionType)
{