fix: 审批不通过报错 Query return 5 results instead of max 1

This commit is contained in:
wzy 2022-07-16 17:17:01 +08:00
parent c92cc26171
commit 16855893d2

View File

@ -63,7 +63,7 @@ public class BpmTaskEventListener extends AbstractFlowableEngineEventListener {
@Override @Override
protected void activityCancelled(FlowableActivityCancelledEvent event) { protected void activityCancelled(FlowableActivityCancelledEvent event) {
HistoricActivityInstance activity = activityService.getHistoricActivityByExecutionId(event.getExecutionId()); HistoricActivityInstance activity = activityService.getHistoricActivityByExecutionId(event.getActivityId());
if (activity == null) { if (activity == null) {
log.error("[activityCancelled][使用 executionId({}) 查找不到对应的活动实例]", event.getExecutionId()); log.error("[activityCancelled][使用 executionId({}) 查找不到对应的活动实例]", event.getExecutionId());
return; return;