Commit 43eb2af6 by huangfusuper

解决空指针异常

parent 89869908
...@@ -785,7 +785,13 @@ public class ApiFlowServiceImpl implements ApiFlowService { ...@@ -785,7 +785,13 @@ public class ApiFlowServiceImpl implements ApiFlowService {
statisticsConditionDto.setFlowName(flowName); statisticsConditionDto.setFlowName(flowName);
//查询固定工作空间下 时间范围内的的所由工作流实例数目 //查询固定工作空间下 时间范围内的的所由工作流实例数目
List<RunRecording> betweenRunRecording = runRecordingMapper.findThisDayRunRecording(statisticsConditionDto); List<RunRecording> betweenRunRecording = runRecordingMapper.findThisDayRunRecording(statisticsConditionDto);
Map<String, Long> resultMap = betweenRunRecording.stream().collect(Collectors.groupingBy(RunRecording::getFlowRunResult, Collectors.counting())); Map<String, Long> resultMap = betweenRunRecording.stream().collect(Collectors.groupingBy(e ->{
String flowRunResult = e.getFlowRunResult();
if (StringUtils.isBlank(flowRunResult)) {
flowRunResult = "-1";
}
return flowRunResult;
}, Collectors.counting()));
Map<String, Long> statusMap = betweenRunRecording.stream().collect(Collectors.groupingBy(RunRecording::getFlowStatus, Collectors.counting())); Map<String, Long> statusMap = betweenRunRecording.stream().collect(Collectors.groupingBy(RunRecording::getFlowStatus, Collectors.counting()));
//成功的 //成功的
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment