| | |
| | | * 视频点位在线率 |
| | | */ |
| | | private CheckIndexVideo createOrUpdateCheckIndexFace(String key, AreaStats stats, List<CheckIndexVideo> checkIndexVideoList) { |
| | | CheckIndexVideo CheckIndexVideo = getCheckIndex(key, checkIndexVideoList, CheckIndexVideo.class); |
| | | if (CheckIndexVideo == null) { |
| | | CheckIndexVideo checkIndexVideo = getCheckIndex(key, checkIndexVideoList, CheckIndexVideo.class); |
| | | if (checkIndexVideo == null) { |
| | | return null; |
| | | } |
| | | //调用点位在线率计算方法 |
| | |
| | | param.put("totalSites", stats.totalSites); |
| | | param.put("onlineSites", stats.onlineSites); |
| | | BigDecimal siteOnline = siteOnline(param); |
| | | CheckIndexVideo.setSiteOnline(siteOnline); |
| | | checkIndexVideo.setSiteOnline(siteOnline); |
| | | //调用点位在线率计算方法 计算重点点位在线率 |
| | | Map<String, Object> importantParam = new HashMap<>(); |
| | | param.put("totalSites", stats.importantSites); |
| | | param.put("onlineSites", stats.importantOnlineSites); |
| | | BigDecimal importantSiteOnline = siteOnline(importantParam); |
| | | CheckIndexVideo.setKeySiteOnline(importantSiteOnline); |
| | | return CheckIndexVideo; |
| | | checkIndexVideo.setKeySiteOnline(importantSiteOnline); |
| | | return checkIndexVideo; |
| | | } |
| | | } |