From d4652968511bc92854d87e9519f144512743fd05 Mon Sep 17 00:00:00 2001
From: linwei <872216696@qq.com>
Date: Wed, 10 Jan 2024 13:28:03 +0800
Subject: [PATCH] bug修复
---
src/main/java/org/springblade/flow/listener/MyExecutionListener.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/main/java/org/springblade/flow/listener/MyExecutionListener.java b/src/main/java/org/springblade/flow/listener/MyExecutionListener.java
index 088b7e1..997dbe7 100644
--- a/src/main/java/org/springblade/flow/listener/MyExecutionListener.java
+++ b/src/main/java/org/springblade/flow/listener/MyExecutionListener.java
@@ -14,6 +14,9 @@
System.out.println("***************************DelegateExecution");
IPropertyCapitalApplyService bean = SpringUtils.getBean(IPropertyCapitalApplyService.class);
PropertyCapitalApplyEntity applyEntity = bean.getOne(Wrappers.<PropertyCapitalApplyEntity>lambdaQuery().eq(PropertyCapitalApplyEntity::getProcessInstanceId, delegateExecution.getProcessInstanceId()));
+ if (applyEntity == null) {
+ return;
+ }
if (delegateExecution.getCurrentActivityId().equals("ownersCommittee1")) {
applyEntity.setApplyStatus(1);
} else if (delegateExecution.getCurrentActivityId().equals("ownersCommitteePass")) {
@@ -26,6 +29,8 @@
applyEntity.setApplyStatus(5);
} else if (delegateExecution.getCurrentActivityId().equals("applyNotPass")) {
applyEntity.setApplyStatus(6);
+ } else if (delegateExecution.getCurrentActivityId().equals("ownersCommitteeFlag0")) {
+ applyEntity.setApplyStatus(2);
}
bean.updateById(applyEntity);
}
--
Gitblit v1.9.3