|
|
@ -145,7 +145,7 @@ public class ResultAnalysisServiceImpl implements IResultAnalysisService { |
|
|
if (patrolDataList == null || patrolDataList.isEmpty()) { |
|
|
if (patrolDataList == null || patrolDataList.isEmpty()) { |
|
|
return patrolDataList; |
|
|
return patrolDataList; |
|
|
} |
|
|
} |
|
|
Map<String, List<PatrolData>> collect = patrolDataList.stream().collect(Collectors.groupingBy(item -> item.getAlgType() + "_" + item.getObjectId())); |
|
|
|
|
|
|
|
|
Map<String, List<PatrolData>> collect = patrolDataList.stream().filter(item -> StringUtils.isNotEmpty(item.getDesc()) && !item.getDesc().contains("失败")).collect(Collectors.groupingBy(item -> item.getAlgType() + "_" + item.getObjectId())); |
|
|
List<PatrolData> resultList = new ArrayList<>(); |
|
|
List<PatrolData> resultList = new ArrayList<>(); |
|
|
collect.forEach((key, value) -> { |
|
|
collect.forEach((key, value) -> { |
|
|
PatrolData patrolData = new PatrolData(); |
|
|
PatrolData patrolData = new PatrolData(); |
|
|
@ -183,4 +183,9 @@ public class ResultAnalysisServiceImpl implements IResultAnalysisService { |
|
|
return resultList; |
|
|
return resultList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Long getDefectCountGroupByPoint(String defectFilter, String defectIsToday, String type) { |
|
|
|
|
|
return this.resultAnalysisMapper.selectResultAnalysisListDefectInfo(defectFilter, defectIsToday, type); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |