修改一版

Uat_Study
he 2022-08-04 15:00:25 +08:00
parent ee07049a6e
commit a39052d750
1 changed files with 4 additions and 3 deletions

View File

@ -139,10 +139,10 @@ namespace IRaCIS.Core.Application.Contracts
{ {
await VerifyIsQCConfirmedAsync(trialId); await VerifyIsQCConfirmedAsync(trialId);
var maxShowOrder = await _trialQcQuestionRepository.Where(x => x.TrialId == trialId).MaxAsync(x => x.ShowOrder);
batchList.ForEach(x => batchList.ForEach(x =>
{ {
x.ShowOrder= maxShowOrder++;
x.SystemQuestionId = x.Id; x.SystemQuestionId = x.Id;
x.Id = NewId.NextGuid(); x.Id = NewId.NextGuid();
@ -158,12 +158,13 @@ namespace IRaCIS.Core.Application.Contracts
} }
else else
{ {
item.ParentId = parent.Id;
} }
} }
var batchConfigList = _mapper.Map<List<TrialQCQuestion>>(batchList); var batchConfigList = _mapper.Map<List<TrialQCQuestion>>(batchList);
batchConfigList.ForEach(t => t.TrialId = trialId); batchConfigList.ForEach(t => t.TrialId = trialId);