| | |
| | | @Override |
| | | public void calculate(List<DataIntegrityMonitoringResult> list) { |
| | | //获取分区域的指标数量 |
| | | Map<String, CarDataIntegrityCalculation.AreaStats> areaStatsMap = getAreaStatsMap(list,Boolean.FALSE); |
| | | Map<String, CarDataIntegrityCalculation.AreaStats> areaStatsMap = getAreaStatsMap(list, Boolean.FALSE); |
| | | if (areaStatsMap == null) return; |
| | | |
| | | // 查询是否index表已经存在今日数据 |
| | |
| | | AreaStats stats = areaStatsMap.computeIfAbsent(key, k -> new AreaStats()); |
| | | stats.totalSites++; |
| | | //90%及以上数据合格则此车辆卡口设备被视为抓拍数据完整 |
| | | if (result.getMainNoIntegrityPercent() <= 0.1) { |
| | | if (result.getMainNoIntegrityPercent() != null && result.getMainNoIntegrityPercent() <= 0.1) { |
| | | stats.integritySites++; |
| | | } |
| | | //重点点位为六项属性完整 |
| | | if (result.getImportantTag()!=null && result.getImportantTag()) { |
| | | if (result.getImportantTag() != null && result.getImportantTag()) { |
| | | stats.importantTotalSites++; |
| | | if (result.getNoIntegrityPercent() <= 0.1) { |
| | | stats.importantIntegritySites++; |