diff --git a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs index 4de34635b..5d5d0ec70 100644 --- a/IRaCIS.Core.Application/Service/QC/QCOperationService.cs +++ b/IRaCIS.Core.Application/Service/QC/QCOperationService.cs @@ -776,6 +776,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>(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());