From 4d0e15f75597cebdf1f1f0a0ba12e781303d7ff8 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 1 Sep 2022 15:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E7=BB=93=E6=9E=9C=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 9fbe30196..1f4547d18 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -1255,6 +1255,19 @@ namespace IRaCIS.Core.Infra.EFCore.Common var entity = item.Entity as VisitTask; + var obj= new object() { }; + + if(entity.JudgeResultTaskId != null && _userInfo.RequestUrl== "ReadingImageTask/saveJudgeVisitTaskResult") + { + var list= await _dbContext.VisitTask.Where(t => t.TaskState == TaskState.Effect && t.SubjectId == entity.SubjectId && t.VisitTaskNum == entity.VisitTaskNum ).Select(t => new {t.Id, t.DoctorUser.FullName, t.ArmEnum }).OrderBy(t=>t.ArmEnum).ToListAsync(); + + var r1 = list.First(); + var r2 = list.Last(); + + + obj = new { R1 = r1.FullName, R2 = r2.FullName, SelectResult = entity.ArmEnum == r1.ArmEnum ? "R1" : "R2" }; + } + await InsertInspection(entity, type, x => new InspectionConvertDTO() { VisitTaskId = x.Id, @@ -1265,7 +1278,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common ObjectRelationParentId2 = entity.DoctorUserId - }); + }, obj); } //申请重阅记录表