Commit 16855893d2966d8db79a1844d69e9229fb89419c
1 parent
c92cc261
fix: 审批不通过报错 Query return 5 results instead of max 1
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/listener/BpmTaskEventListener.java
| @@ -63,7 +63,7 @@ public class BpmTaskEventListener extends AbstractFlowableEngineEventListener { | @@ -63,7 +63,7 @@ public class BpmTaskEventListener extends AbstractFlowableEngineEventListener { | ||
| 63 | 63 | ||
| 64 | @Override | 64 | @Override |
| 65 | protected void activityCancelled(FlowableActivityCancelledEvent event) { | 65 | protected void activityCancelled(FlowableActivityCancelledEvent event) { |
| 66 | - HistoricActivityInstance activity = activityService.getHistoricActivityByExecutionId(event.getExecutionId()); | 66 | + HistoricActivityInstance activity = activityService.getHistoricActivityByExecutionId(event.getActivityId()); |
| 67 | if (activity == null) { | 67 | if (activity == null) { |
| 68 | log.error("[activityCancelled][使用 executionId({}) 查找不到对应的活动实例]", event.getExecutionId()); | 68 | log.error("[activityCancelled][使用 executionId({}) 查找不到对应的活动实例]", event.getExecutionId()); |
| 69 | return; | 69 | return; |