Merge branch 'dev' into docker_package
This commit is contained in:
commit
8844a9fdf2
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue