xiangpei
2024-08-03 2b776c4a2222d9bc36f53a449bda2b808c7b43b9
ycl-server/src/main/java/com/ycl/calculate/VideoOnlineCalculation.java
@@ -115,8 +115,8 @@
     * 视频点位在线率
     */
    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;
        }
        //调用点位在线率计算方法
@@ -124,13 +124,13 @@
        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;
    }
}