更新里面有添加bug
continuous-integration/drone/push Build is passing Details

Uat_IRC_Net8
hang 2025-07-29 15:21:18 +08:00
parent 9082caa57c
commit 6c103b577c
1 changed files with 10 additions and 0 deletions

View File

@ -782,6 +782,16 @@ namespace IRaCIS.Core.Application.Image.QA
//_mapper.Map(qcQuestionAnswerCommands, questionAnswerList);
#endregion
//可能还有新增的问题
var needAddList = qcQuestionAnswerCommands.Where(t => t.Id == null).ToList();
var addlist = _mapper.Map<List<TrialQCQuestionAnswer>>(needAddList);
addlist.ForEach(t => { t.TrialId = trialId; t.SubjectVisitId = subjectVisitId; t.CurrentQCEnum = currentQCType; t.QCProcessEnum = trialQCProcess; t.SecondReviewTime = currentQCType == CurrentQC.SecondReview ? trialConfirmTime : null; });
await _trialQCQuestionAnswerRepository.AddRangeAsync(addlist);
return ResponseOutput.Ok(await _trialQCQuestionAnswerRepository.SaveChangesAsync());