更新里面有添加bug
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9082caa57c
commit
6c103b577c
|
@ -782,6 +782,16 @@ namespace IRaCIS.Core.Application.Image.QA
|
||||||
//_mapper.Map(qcQuestionAnswerCommands, questionAnswerList);
|
//_mapper.Map(qcQuestionAnswerCommands, questionAnswerList);
|
||||||
#endregion
|
#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());
|
return ResponseOutput.Ok(await _trialQCQuestionAnswerRepository.SaveChangesAsync());
|
||||||
|
|
Loading…
Reference in New Issue