| | |
| | | @Autowired |
| | | private ICheckIndexVideoService checkIndexVideoService; |
| | | |
| | | //区域视频在线率的内部类 |
| | | //区域录像可用率的内部类 |
| | | protected static class AreaStats { |
| | | int totalSites = 0; |
| | | int usabilitySites = 0; |
| | |
| | | @Override |
| | | public void calculate(List<RecordMetaDSumResult> list) { |
| | | //获取分区域的指标数量 |
| | | Map<String, VideoUsabilityCalculation.AreaStats> areaStatsMap = getAreaStatsMap(list); |
| | | Map<String, VideoUsabilityCalculation.AreaStats> areaStatsMap = getAreaStatsMap(list,Boolean.TRUE); |
| | | if (areaStatsMap == null) return; |
| | | |
| | | // 查询是否index表已经存在今日数据 |
| | |
| | | } |
| | | |
| | | /** |
| | | * 视频点位在线率 |
| | | * 视频录像可用率 |
| | | */ |
| | | private CheckIndexVideo createOrUpdateCheckIndexVideo(String key, AreaStats stats, List<CheckIndexVideo> checkIndexVideoList) { |
| | | CheckIndexVideo checkIndexVideo = getCheckIndex(key, checkIndexVideoList, CheckIndexVideo.class); |