This commit is contained in:
wangliwen 2022-07-07 11:53:46 +08:00
parent 8371b085f4
commit fc715c9cd4
8 changed files with 40 additions and 0 deletions

View File

@ -166,6 +166,11 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti
&& StringUtils.isNotEmpty(demandDataDTO.getApplyUserId())
&& demandDataDTO.getApplyUserId().equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}

View File

@ -157,6 +157,11 @@ public class CommentListener implements TaskListener, ExecutionListener, Activit
&& StringUtils.isNotEmpty(tDemandCommentDTO.getCreator().toString())
&& tDemandCommentDTO.getCreator().toString().equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
}

View File

@ -228,6 +228,11 @@ public class CorrectionListener implements TaskListener, ExecutionListener, Acti
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
&& abilityApplicationDTO.getUserId().equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
}

View File

@ -140,6 +140,11 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti
&& StringUtils.isNotEmpty(abilityApplicationDTO.getUserId())
&& abilityApplicationDTO.getUserId().equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}

View File

@ -208,6 +208,11 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
}

View File

@ -110,6 +110,11 @@ public class DataCenterListenerV2 implements TaskListener, ExecutionListener, Ac
&& StringUtils.isNotEmpty(delegateTask.getVariable("creator", String.class))
&& delegateTask.getVariable("creator", String.class).equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
}

View File

@ -149,6 +149,11 @@ public class ResourceUndercarriageListener implements TaskListener, ExecutionLis
&& StringUtils.isNotEmpty(re.getCreator().toString())
&& re.getCreator().toString().equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
}

View File

@ -227,6 +227,11 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A
&& StringUtils.isNotEmpty(resourceMountApplyDTO.getUserId())
&& resourceMountApplyDTO.getUserId().equals(assignee)) {
taskService.addComment(delegateTask.getId(), delegateTask.getProcessInstanceId(), "审批人为发起人,默认通过");
try {
Thread.sleep(100l);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
taskService.complete(delegateTask.getId(), delegateTask.getVariables());
}
}