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); } //申请重阅记录表