From 3b9e8277e161c527693c369b69e5bee2ef1bdd1e Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Tue, 18 Oct 2022 11:58:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/TrialSiteUser/TrialConfigService.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs index 8bcc18d40..b988a521c 100644 --- a/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs +++ b/IRaCIS.Core.Application/Service/TrialSiteUser/TrialConfigService.cs @@ -283,6 +283,22 @@ namespace IRaCIS.Core.Application result.FormType = trialCriterion.FormType; result.IsFromSystem = trialCriterion.ReadingQuestionCriterionSystemId != null; + if (trialCriterion.SynchronizeOriginalTime == null && trialCriterion.ReadingQuestionCriterionSystemId != null) + { + // 同步器官 + await _iOrganInfoService.SynchronizeSystemOrganToTrial(new SynchronizeSystemOrganToTrialInDto() + { + TrialReadingCriterionId = inDto.TrialReadingCriterionId, + SystemCriterionId = trialCriterion.ReadingQuestionCriterionSystemId + }); + + // 同步问题 + await iReadingQuestionService.SynchronizeCriterion(new SynchronizeCriterionInDto() + { + + TrialReadingCriterionId = inDto.TrialReadingCriterionId, + }); + } };