From a39052d750333f8723fdeae65d246a85f6532b8a Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Thu, 4 Aug 2022 15:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/QC/TrialQCQuestionService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs index 06a18f846..5ce65b301 100644 --- a/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs +++ b/IRaCIS.Core.Application/Service/QC/TrialQCQuestionService.cs @@ -139,10 +139,10 @@ namespace IRaCIS.Core.Application.Contracts { await VerifyIsQCConfirmedAsync(trialId); - + var maxShowOrder = await _trialQcQuestionRepository.Where(x => x.TrialId == trialId).MaxAsync(x => x.ShowOrder); batchList.ForEach(x => { - + x.ShowOrder= maxShowOrder++; x.SystemQuestionId = x.Id; x.Id = NewId.NextGuid(); @@ -158,10 +158,11 @@ namespace IRaCIS.Core.Application.Contracts } else { - + item.ParentId = parent.Id; } } + var batchConfigList = _mapper.Map>(batchList);