Browse Source

寻找下个审批节点

master
PoffyZhang 1 year ago
parent
commit
350c47198b
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java

+ 3
- 2
pmapi/src/main/java/com/ningdatech/pmapi/todocenter/manage/TodoCenterManage.java View File

@@ -344,7 +344,7 @@ public class TodoCenterManage {
//通过审核后 所处理的逻辑
handlerManage.afterPassTodo(declaredProject,instance);

return findNextTaskId(instance);
return findNextTaskId(instance,employeeCode);
// 驳回
case REJECT:
// 驳回该任务,中止流程并使项目进入对应状态,给项目创建人、流程发起人发送浙政钉工作通知:
@@ -392,10 +392,11 @@ public class TodoCenterManage {
* @param instance
* @return
*/
private String findNextTaskId(HistoricProcessInstance instance) {
private String findNextTaskId(HistoricProcessInstance instance,String employeeCode) {
List<ActivityInstance> userTasks = runtimeService.createActivityInstanceQuery()
.activityType("userTask")
.processInstanceId(instance.getId())
.taskAssignee(employeeCode)
.orderByActivityInstanceStartTime()
.desc()
.unfinished()


Loading…
Cancel
Save