|
@@ -117,8 +117,9 @@ public class DiagnoseFaultController {
|
|
|
int count = collect.stream().filter(a -> a.getAlgcode().equals(a.getFaultcode())).collect(Collectors.toList()).size();
|
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
+ int accuracy = size > 0 ? count / size : -1;
|
|
|
map.put("station", station);
|
|
|
- map.put("accuracy", count/size);
|
|
|
+ map.put("accuracy", accuracy);
|
|
|
list.add(map);
|
|
|
}
|
|
|
return JsonResult.successData(ResultCode.SUCCESS, list);
|