From ff3796b7a011bd59f28a7ef799efff2f4f1af369 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Wed, 17 Jan 2024 14:49:18 +0800
Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9=E8=A3=81=E5=88=A4=E9=87=8D?=
=?UTF-8?q?=E9=98=85=E9=80=BB=E8=BE=91=202]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Triggers/VisitTaskIbeforeTrigger.cs | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/IRaCIS.Core.Application/Triggers/VisitTaskIbeforeTrigger.cs b/IRaCIS.Core.Application/Triggers/VisitTaskIbeforeTrigger.cs
index 5a97b8d54..9c7eec7ab 100644
--- a/IRaCIS.Core.Application/Triggers/VisitTaskIbeforeTrigger.cs
+++ b/IRaCIS.Core.Application/Triggers/VisitTaskIbeforeTrigger.cs
@@ -28,6 +28,8 @@ namespace IRaCIS.Core.Application.Triggers
///
/// 因为维护状态先后顺序导致 裁判任务关联的 任务上的JudgeVisitTaskId==nulll 在这里需要重新设置下
+ ///
+ /// 比如: 申请裁判任务重阅,事务里面本来设置了任务上的裁判id,但是因为下面的逻辑,导致设置的值又被清理了,只能重新设置下
///
///
///
@@ -50,6 +52,15 @@ namespace IRaCIS.Core.Application.Triggers
}
}
+ ///
+ /// 比如 两个任务产生了裁判,然后其中一个人申请了重阅,影响了裁判,需要清理之前任务的上裁判id
+ ///
+ ///
+ /// 因为申请重阅,退回,里面分有序,无序,情况太多,所以不在那块逻辑修改,不然得加多个地方处理,在这里统一处理
+ ///
+ ///
+ ///
+ ///
public async Task BeforeSave(ITriggerContext context, CancellationToken cancellationToken)
{
var visitTask = context.Entity;