Compare commits

..

2 Commits

Author SHA1 Message Date
he 58c1c25fc2 Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing Details
2025-04-24 15:53:26 +08:00
he 3045b0ec48 修改 2025-04-24 15:53:22 +08:00
1 changed files with 21 additions and 0 deletions

View File

@ -881,9 +881,30 @@ 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);