From db421a99dd1ea5587d3e133fcb02e0ad5d0207c7 Mon Sep 17 00:00:00 2001 From: rulego-team Date: Thu, 24 Sep 2026 18:12:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=94=B6=E5=9B=9E=E9=87=8D=E5=BB=BA?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1assigned=E4=BA=8B=E4=BB=B6=E5=B8=A6=E7=BC=98?= =?UTF-8?q?=E7=94=B1,=E9=80=9A=E7=9F=A5=E5=8F=AF=E5=8C=BA=E5=88=86?= =?UTF-8?q?=E9=A6=96=E6=AC=A1=E5=BE=85=E5=8A=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/task_service_recall.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/service/task_service_recall.go b/service/task_service_recall.go index d7a9b07..dad9588 100644 --- a/service/task_service_recall.go +++ b/service/task_service_recall.go @@ -466,7 +466,8 @@ func (s *TaskServiceImpl) recallInternal(ctx context.Context, scope *InstanceSco Reason: reason, Timestamp: time.Now(), }, ctx) - // 重建任务沿用 assigned 事件,通知口径与新建任务一致 + // 重建任务沿用 assigned 事件;Reason 标注收回缘由,通知与收回前的 + // 首张待办区分开 DispatchTaskEvent(listener, TaskEvent{ Type: TaskEventAssigned, TaskID: evtTaskID, @@ -478,6 +479,7 @@ func (s *TaskServiceImpl) recallInternal(ctx context.Context, scope *InstanceSco TaskName: evtName, ToUsers: []string{evtFrom}, FromUser: evtFrom, + Reason: constants.EndReasonPrefixRecall + ",重新待审", Timestamp: time.Now(), }, ctx) return nil