Compare commits

...

2 Commits

Author SHA1 Message Date
wangliwen b8565cb9d1 Merge branch 'dev' 2022-12-12 16:55:41 +08:00
wangliwen 4bdebca7d7 调整协作组内审核人不更改 2022-12-12 16:55:33 +08:00
1 changed files with 4 additions and 4 deletions

View File

@ -524,10 +524,10 @@ public class ActTaskService extends BaseServiceImpl {
public void completeTask(String taskId, String comment) { public void completeTask(String taskId, String comment) {
String userId = SecurityUser.getUserId().toString(); String userId = SecurityUser.getUserId().toString();
Task task = taskService.createTaskQuery().taskId(taskId).singleResult(); Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
if (StringUtils.isNotEmpty(task.getAssignee()) // if (StringUtils.isNotEmpty(task.getAssignee())
&& !task.getAssignee().equals(userId)) { // && !task.getAssignee().equals(userId)) {
taskService.setAssignee(taskId, userId); //与原任务审核人员不一致时换成实际通过的人 // taskService.setAssignee(taskId, userId); //与原任务审核人员不一致时换成实际通过的人
} // }
if (StringUtils.isNotEmpty(comment)) { if (StringUtils.isNotEmpty(comment)) {
taskService.addComment(taskId, task.getProcessInstanceId(), comment); taskService.addComment(taskId, task.getProcessInstanceId(), comment);
} }