Test.EIImageViewer
parent
7fa5d24c6c
commit
456eaf5dee
Binary file not shown.
|
@ -452,7 +452,25 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
|
||||||
QuestionType.ExistDisease,
|
QuestionType.ExistDisease,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 没有靶病灶就删除其他几个答案的值
|
||||||
|
var isNeedDeleteTypes = calculateList.Where(x => !questionTypes.Contains(x.QuestionType)).Select(x => x.QuestionType).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
var isNeedDeleteIds = inDto.QuestionInfo.Where(x =>x.QuestionType!=null&& isNeedDeleteTypes.Contains(x.QuestionType.Value)).Select(x => x.QuestionId).ToList();
|
||||||
|
|
||||||
|
await _readingTaskQuestionAnswerRepository.BatchUpdateNoTrackingAsync(x => x.VisitTaskId == inDto.VisitTaskId && isNeedDeleteIds.Contains(x.ReadingQuestionTrialId), x => new ReadingTaskQuestionAnswer
|
||||||
|
{
|
||||||
|
Answer = string.Empty
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
calculateList = calculateList.Where(x => questionTypes.Contains(x.QuestionType)).ToList();
|
calculateList = calculateList.Where(x => questionTypes.Contains(x.QuestionType)).ToList();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (calculateType != null)
|
if (calculateType != null)
|
||||||
|
|
Loading…
Reference in New Issue