From 350c47198b8b92b3c1febee609b62ee2102eab8f Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Thu, 4 May 2023 11:41:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BB=E6=89=BE=E4=B8=8B=E4=B8=AA=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java index fb458bd..7b17a49 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java @@ -344,7 +344,7 @@ public class TodoCenterManage { //通过审核后 所处理的逻辑 handlerManage.afterPassTodo(declaredProject,instance); - return findNextTaskId(instance); + return findNextTaskId(instance,employeeCode); // 驳回 case REJECT: // 驳回该任务,中止流程并使项目进入对应状态,给项目创建人、流程发起人发送浙政钉工作通知: @@ -392,10 +392,11 @@ public class TodoCenterManage { * @param instance * @return */ - private String findNextTaskId(HistoricProcessInstance instance) { + private String findNextTaskId(HistoricProcessInstance instance,String employeeCode) { List userTasks = runtimeService.createActivityInstanceQuery() .activityType("userTask") .processInstanceId(instance.getId()) + .taskAssignee(employeeCode) .orderByActivityInstanceStartTime() .desc() .unfinished()