From 7f40175a406211853dbc6c520b497dc4e2f29697 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Thu, 19 May 2022 14:23:48 +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/WorkLoad/EnrollService.cs | 1 - .../Common/AuditingData.cs | 18 +++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs index e91dddf17..17f157ad0 100644 --- a/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs +++ b/IRaCIS.Core.Application/Service/WorkLoad/EnrollService.cs @@ -140,7 +140,6 @@ namespace IRaCIS.Application.Services //添加项目状态变化记录 var trialDetail = new TrialStatusDetail() { - TrialId = trial.Id, TrialStatus = (int)TrialEnrollStatus.HasApplyDownLoadResume, }; diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index b25815d08..7f810d3be 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -235,7 +235,23 @@ namespace IRaCIS.Core.Infra.EFCore.Common },null, "UserSigned"); } - + // 医生 + foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(Enroll))) + { + await InsertInspection(item, type, x => new DataInspection() + { + GeneralId = x.Id, + }); + } + + // 医生详情 + foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(EnrollDetail))) + { + await InsertInspection(item, type, x => new DataInspection() + { + GeneralId = x.Id, + }); + } // 项目中心 foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TrialSite)))