...恢复
This commit is contained in:
parent
4bdebca7d7
commit
5f2b55d975
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue