| | |
| | | calculator.calculate(tMonitorVOS); |
| | | log.info("结束计算一机一档注册率、档案考核比"); |
| | | } |
| | | public void oneMonitorQualifyTask(){ |
| | | |
| | | public void oneMonitorQualifyTask() { |
| | | log.info("开始计算一机一档合格率"); |
| | | //计算一机一档合格率 |
| | | Date yesterday = DateUtils.addDays(new Date(), -1); |
| | |
| | | calculator.calculate(results); |
| | | log.info("结束计算一机一档合格率"); |
| | | } |
| | | |
| | | public void platformOnlineTask() { |
| | | log.info("开始计算平台在线率"); |
| | | //计算平台在线率 |
| | |
| | | calculator.calculate(list); |
| | | log.info("结束计算平台在线率"); |
| | | } |
| | | |
| | | public void osdTask() { |
| | | log.info("开始计算Osd标注、时间准确率"); |
| | | //计算Osd标注、时间准确率 |
| | |
| | | /** |
| | | * 视频图像资源安全,需要排在平台在线率后面。 |
| | | */ |
| | | //手动打分取最近数据,前端页面加打分规则提示 |
| | | @Transactional |
| | | public void videoSecurity() { |
| | | ArrayList<ImageResourceSecurity> imageResourceSecurities = new ArrayList<>(); |
| | |
| | | count++; |
| | | } |
| | | } |
| | | imageResourceSecurity.setWeakPassword(BigDecimal.valueOf(score).divide(new BigDecimal(100),4, RoundingMode.HALF_UP)); |
| | | imageResourceSecurity.setWeakPassword(BigDecimal.valueOf(score).divide(new BigDecimal(100), 4, RoundingMode.HALF_UP)); |
| | | // 获取字典值-总数 |
| | | int onlineAssetsTotal = Integer.parseInt(DictUtils.getDictValue("online_assets_total", checkIndexVideo.getDeptName())); |
| | | imageResourceSecurity.setRiskProperty(BigDecimal.valueOf(count / onlineAssetsTotal)); |
| | | imageResourceSecurity.setCreateTime(DateUtils.getNowDate()); |
| | | imageResourceSecurities.add(imageResourceSecurity); |
| | | // 更新指标数据 |
| | | checkIndexVideo.setImageResourceSecurity(imageResourceSecurity.getPlatformOnline().add(imageResourceSecurity.getPropertyAccuracy().add(imageResourceSecurity.getWeakPassword().add(imageResourceSecurity.getRiskProperty()))).multiply(NUM)); |
| | | checkIndexVideo.setImageResourceSecurity( |
| | | imageResourceSecurity.getPlatformOnline() |
| | | .add(imageResourceSecurity.getPropertyAccuracy() |
| | | .add(imageResourceSecurity.getWeakPassword() |
| | | .add(imageResourceSecurity.getRiskProperty()))).multiply(NUM) |
| | | .add(imageResourceSecurity.getBoundaryIntegrity()).multiply(new BigDecimal("0.45")) |
| | | ); |
| | | checkIndexVideoMapper.updateById(checkIndexVideo); |
| | | } |
| | | imageResourceSecurityService.saveBatch(imageResourceSecurities); |