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()