From 0769f8fe0560fffe458b4d77efe495d27f33f391 Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Tue, 6 May 2025 16:35:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=A2=9D=E5=A4=96=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Domain/_DomainEvent/ReUploadEvent.cs | 1 + IRaCIS.Core.Infra.EFCore/Interceptor/AddDomainExt.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Domain/_DomainEvent/ReUploadEvent.cs b/IRaCIS.Core.Domain/_DomainEvent/ReUploadEvent.cs index bcaeb2779..844451015 100644 --- a/IRaCIS.Core.Domain/_DomainEvent/ReUploadEvent.cs +++ b/IRaCIS.Core.Domain/_DomainEvent/ReUploadEvent.cs @@ -51,6 +51,7 @@ namespace IRaCIS.Core.Domain._DomainEvent /// public class HaveReadVisitTaskReReading : DomainEvent { + public Guid SubjectId { get; set; } public Guid VisitTaskId { get; set; } public ReReadingApplyState ReReadingApplyState { get; set; } diff --git a/IRaCIS.Core.Infra.EFCore/Interceptor/AddDomainExt.cs b/IRaCIS.Core.Infra.EFCore/Interceptor/AddDomainExt.cs index 80be043da..bfed6d4e2 100644 --- a/IRaCIS.Core.Infra.EFCore/Interceptor/AddDomainExt.cs +++ b/IRaCIS.Core.Infra.EFCore/Interceptor/AddDomainExt.cs @@ -359,7 +359,7 @@ public static class DBContext_Ext } - visitTask.AddDomainEvent(new HaveReadVisitTaskReReading() { VisitTaskId = visitTask.Id, ReReadingApplyState = visitTask.ReReadingApplyState }); + visitTask.AddDomainEvent(new HaveReadVisitTaskReReading() { SubjectId=visitTask.SubjectId, VisitTaskId = visitTask.Id, ReReadingApplyState = visitTask.ReReadingApplyState }); @@ -369,7 +369,7 @@ public static class DBContext_Ext if ((originReReadingApplyState == ReReadingApplyState.DocotorHaveApplyed || originReReadingApplyState == ReReadingApplyState.TrialGroupHaveApplyed) && (visitTask.ReReadingApplyState == ReReadingApplyState.Agree || visitTask.ReReadingApplyState == ReReadingApplyState.Reject)) { - visitTask.AddDomainEvent(new HaveReadVisitTaskReReading() { VisitTaskId = visitTask.Id, ReReadingApplyState = visitTask.ReReadingApplyState }); + visitTask.AddDomainEvent(new HaveReadVisitTaskReReading() { SubjectId = visitTask.SubjectId, VisitTaskId = visitTask.Id, ReReadingApplyState = visitTask.ReReadingApplyState }); }