diff --git a/blade-ops/blade-flow/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java b/blade-ops/blade-flow/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java index 9ef02fbc..b96e2926 100644 --- a/blade-ops/blade-flow/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java +++ b/blade-ops/blade-flow/src/main/java/org/springblade/flow/business/service/impl/FlowBusinessServiceImpl.java @@ -120,6 +120,9 @@ public class FlowBusinessServiceImpl implements FlowBusinessService { if (bladeFlow.getCategory() != null) { historyQuery.processDefinitionCategory(bladeFlow.getCategory()); } + if (bladeFlow.getProcessDefinitionName() != null) { + historyQuery.processDefinitionName(bladeFlow.getProcessDefinitionName()); + } if (bladeFlow.getBeginDate() != null) { historyQuery.startedAfter(bladeFlow.getBeginDate()); } @@ -190,6 +193,9 @@ public class FlowBusinessServiceImpl implements FlowBusinessService { if (bladeFlow.getCategory() != null) { doneQuery.processCategoryIn(Func.toStrList(bladeFlow.getCategory())); } + if (bladeFlow.getProcessDefinitionName() != null) { + doneQuery.processDefinitionName(bladeFlow.getProcessDefinitionName()); + } if (bladeFlow.getBeginDate() != null) { doneQuery.taskCompletedAfter(bladeFlow.getBeginDate()); }