From a1c4c00d1c6ea0a6dc80536b5d4aec465d7c3822 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 23 May 2023 11:27:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E6=A0=87=E5=87=86=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=99=84=E5=8A=A0=E8=AF=84=E4=BC=B0=E7=A8=BD=E6=9F=A5?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index bb75fe00f..35527fffa 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -123,6 +123,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common //临床数据配置 var clinicalDataSetNameList = await _dbContext.ClinicalDataTrialSet.Where(t => t.TrialId == entity.Id && t.IsConfirm).Select(t => t.ClinicalDataSetName).ToListAsync(); + //List trialDics = new List(); @@ -266,6 +267,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common dicValueList = await _dbContext.Dictionary.Where(t => dicIdList.Contains(t.Id)).Select(t => t.Value).ToListAsync(); } + // 附加评估 + + var addtionalAssesementList = await _dbContext.TrialCriterionAdditionalAssessmentType.Where(t => t.TrialReadingCriterionId == entity.Id && t.IsSelected != null) + .Select(t => new { t.AdditionalAssessmentType, t.IsSelected }).ToListAsync(); + await InsertInspection(entity, type, x => new InspectionConvertDTO() { @@ -279,7 +285,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common }, new { - EvaluationResultTypes = dicValueList.Count > 0 ? string.Join(",", dicValueList) : string.Empty + EvaluationResultTypes = dicValueList.Count > 0 ? string.Join(",", dicValueList) : string.Empty, + AdditionalAssessmentTypeList= addtionalAssesementList }); }