Compare commits

..

No commits in common. "58c1c25fc294641521842dfba4e34f5c9d668931" and "2d50037c035b6138f1a02285caefb2de141ef762" have entirely different histories.

1 changed files with 0 additions and 21 deletions

View File

@ -881,30 +881,9 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
TableQuestionId = x.TableQuestionId,
TrialId = x.TrialId,
VisitTaskId = visitTaskId,
}).ToList();
// 添加 典型肝内病灶 默认值
tableRowAnswers.ForEach(x =>
{
var tableQuestion = tableQuestionList.Where(y => y.ReadingQuestionId == x.QuestionId && y.QuestionMark == QuestionMark.TypicalIntrahepaticLesion).FirstOrDefault();
if (tableQuestion != null)
{
tableAnswers.Add(new ReadingTableQuestionAnswer()
{
Id = NewId.NextGuid(),
Answer = ((int)(object)ReadingYesOrNo.No).ToString(),
QuestionId = x.QuestionId,
RowIndex = x.RowIndex,
RowId = x.Id,
TableQuestionId = tableQuestion.Id,
TrialId = x.TrialId,
VisitTaskId = visitTaskId,
});
}
});
var addList = _mapper.Map<List<ReadingTableAnswerRowInfo>>(tableRowAnswers);
await _readingTableAnswerRowInfoRepository.AddRangeAsync(addList);