24282 1 year ago
parent
commit
9b1def2542

+ 3 - 0
hx-flow/src/main/java/com/fjhx/flow/service/flow/impl/FlowExampleServiceImpl.java

@@ -56,6 +56,9 @@ public class FlowExampleServiceImpl extends ServiceImpl<FlowExampleMapper, FlowE
     @Override
     @Override
     public List<FlowInfo> getFlowType() {
     public List<FlowInfo> getFlowType() {
         List<Long> flowInofIdList = flowDefinitionService.getDistinctList(FlowDefinition::getFlowInfoId);
         List<Long> flowInofIdList = flowDefinitionService.getDistinctList(FlowDefinition::getFlowInfoId);
+        if (flowInofIdList.size() == 0) {
+            return new ArrayList<>();
+        }
         return flowInfoService.listByIds(flowInofIdList);
         return flowInfoService.listByIds(flowInofIdList);
     }
     }