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)))