From 87a7362709ac249c3965a392842cf24bc402b6c1 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期一, 28 十月 2024 11:49:09 +0800
Subject: [PATCH] 档案考核比、一机一档合格、注册率。数据中心视频类优化完

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CheckIndexVideo.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CheckIndexVideo.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CheckIndexVideo.java
index bed934e..0c3448d 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CheckIndexVideo.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/entity/CheckIndexVideo.java
@@ -131,7 +131,7 @@
         } 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) + "%");
@@ -173,7 +173,7 @@
 
         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());
@@ -196,7 +196,7 @@
         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));

--
Gitblit v1.8.0