From a1848522409e2ce14bbfb987c525204dab6863d2 Mon Sep 17 00:00:00 2001 From: CMM <2198256324@qq.com> Date: Tue, 28 Mar 2023 16:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E5=9B=9E=E6=A0=A1=E9=AA=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 16fd808..f0b6e11 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 @@ -75,6 +75,7 @@ import com.ningdatech.pmapi.user.security.auth.model.UserFullInfoDTO; import com.ningdatech.pmapi.user.service.IUserInfoService; import com.ningdatech.pmapi.user.util.LoginUserUtil; import com.wflow.contants.HisProInsEndActId; +import com.wflow.contants.ProcessConstant; import com.wflow.exception.BusinessException; import com.wflow.workflow.bean.dto.ProcessInstanceUserDto; import com.wflow.workflow.bean.dto.ReqProcessHandlerDTO; @@ -424,8 +425,9 @@ public class TodoCenterManage { break; // 撤回(流程发起人和当前流程审核人的前一个审核人操作) case WITHDRAW: - // 当前登录用户是流程发起人 - if (userId.equals(Long.valueOf(startUserId))) { + // 登录用户是流程发起人,且是流程发起人撤回 + if (userId.equals(Long.valueOf(startUserId)) + && ProcessConstant.Field.ROOT.equals(param.getTaskId())) { processTaskService.handleTask(param, userId); // 若是流程发起人点击撤回,项目回到上一个状态,需调用状态机更新项目状态,流程状态更新为审核通过 switch (Objects.requireNonNull(ProjectStatusEnum.getValue(projectStatus))) { @@ -447,7 +449,6 @@ public class TodoCenterManage { } else { // 当前登录用户不是流程发起人 List currentProgressInfo = currentInstanceDetail.getProgressInfo(); - ProgressNode progressNode = currentProgressInfo.get(currentProgressInfo.size() - 1); ProgressNode beforeProgressNode; ProgressNode currentProgressNode;