能力申请若为大数据负责人申请,大数据级别申请默认通过;若申请者为资源所属部门审批人,默认通过;

This commit is contained in:
wangliwen 2022-05-20 10:16:51 +08:00
parent 0978d219df
commit 10173db6d1
2 changed files with 12 additions and 0 deletions

View File

@ -201,6 +201,12 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
if ("免批申请".equals(resource.getShareCondition())) { // 针对免批资源申请
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "免批资源申请默认通过");
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
return;
}
if (abilityApplicationDTO.getUserId().equals(delegateTask.getAssignee())) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "申请人为资源提供方部门审批人,默认通过");
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
return;
}
});
}

View File

@ -122,6 +122,12 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
if ("免批申请".equals(resource.getShareCondition())) { // 针对免批资源申请
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "免批资源申请默认通过");
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
return;
}
if (userDTO != null && abilityApplicationDTO.getUserId().equals(userDTO.getId().toString())) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "申请人为大数据部门审批人,默认通过");
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
return;
}
});