@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user