| | |
| | | } else { |
| | | checkIndexVideoVO.setCreateTimeStr(checkIndexVideo.getCreateTimeStr()); |
| | | } |
| | | checkIndexVideoVO.setExamineTagStr(CheckConstants.Examine_Tag_Province.equals(checkIndexVideo.getExamineTag()) ? "省厅考核" : "区县考核"); |
| | | checkIndexVideoVO.setExamineTagStr(CheckConstants.Examine_Tag_Province.equals(checkIndexVideo.getExamineTag()) ? "省厅考核" : CheckConstants.Examine_Tag_County.equals(checkIndexVideo.getExamineTag()) ? "区县考核" : "公安部考核"); |
| | | checkIndexVideoVO.setSiteOnlineText(checkIndexVideo.getSiteOnline().multiply(new BigDecimal(100)).setScale(2, RoundingMode.HALF_UP) + "%"); |
| | | checkIndexVideoVO.setImageResourceSecurityText(checkIndexVideo.getImageResourceSecurity().multiply(new BigDecimal(100)).setScale(2, RoundingMode.HALF_UP) + "%"); |
| | | checkIndexVideoVO.setArchivesRateText(checkIndexVideo.getArchivesRate().multiply(new BigDecimal(100)).setScale(2, RoundingMode.HALF_UP) + "%"); |
| | |
| | | |
| | | int count = videos.size(); |
| | | for (CheckIndexVideo video : videos) { |
| | | numSum = numSum + (video.getNum() == null? 0:video.getNum()); |
| | | numSum = numSum + (video.getNum() == null ? 0 : video.getNum()); |
| | | scoreSum = scoreSum.add(video.getScore() == null ? BigDecimal.ZERO : video.getScore()); |
| | | totalPlatformOnline = totalPlatformOnline.add(video.getPlatformOnline()); |
| | | totalMonitorQualification = totalMonitorQualification.add(video.getMonitorQualification()); |
| | |
| | | averageVideo.setCreateTimeStr("合计"); |
| | | averageVideo.setDeptName(videos.get(0).getDeptName()); |
| | | averageVideo.setExamineTag(videos.get(0).getExamineTag()); |
| | | averageVideo.setNum(numSum/count); |
| | | averageVideo.setNum(numSum / count); |
| | | averageVideo.setScore(scoreSum.divide(BigDecimal.valueOf(count), 2, RoundingMode.HALF_UP)); |
| | | averageVideo.setPlatformOnline(totalPlatformOnline.divide(BigDecimal.valueOf(count), 2, RoundingMode.HALF_UP)); |
| | | averageVideo.setMonitorQualification(totalMonitorQualification.divide(BigDecimal.valueOf(count), 2, RoundingMode.HALF_UP)); |