From 5f2b55d97582ca4be78675ca47602ea376a74029 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 12 Dec 2022 17:06:21 +0800 Subject: [PATCH] =?UTF-8?q?...=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../renren/modules/activiti/service/ActTaskService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java index 9f0e9c14..3a158c58 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActTaskService.java @@ -524,10 +524,10 @@ public class ActTaskService extends BaseServiceImpl { public void completeTask(String taskId, String comment) { String userId = SecurityUser.getUserId().toString(); Task task = taskService.createTaskQuery().taskId(taskId).singleResult(); -// if (StringUtils.isNotEmpty(task.getAssignee()) -// && !task.getAssignee().equals(userId)) { -// taskService.setAssignee(taskId, userId); //与原任务审核人员不一致时,换成实际通过的人 -// } + if (StringUtils.isNotEmpty(task.getAssignee()) + && !task.getAssignee().equals(userId)) { + taskService.setAssignee(taskId, userId); //与原任务审核人员不一致时,换成实际通过的人 + } if (StringUtils.isNotEmpty(comment)) { taskService.addComment(taskId, task.getProcessInstanceId(), comment); }