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

Test_IRC_Net8
hang 2025-04-24 17:22:54 +08:00
commit a8464364c1
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);