From 3b0516a2959e25576e4f3fda697a3b025d06c8c9 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 24 六月 2025 14:09:07 +0800
Subject: [PATCH] 每日录像可用指标添加日志,修改大屏为查看当前月平均

---
 ycl-server/src/main/java/com/ycl/platform/service/impl/YwUnitServiceImpl.java |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/YwUnitServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/YwUnitServiceImpl.java
index 76da7e9..56546b7 100644
--- a/ycl-server/src/main/java/com/ycl/platform/service/impl/YwUnitServiceImpl.java
+++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/YwUnitServiceImpl.java
@@ -23,6 +23,7 @@
 import com.ycl.system.page.PageUtil;
 import com.ycl.utils.DateUtils;
 import com.ycl.utils.SecurityUtils;
+import enumeration.ErrorType;
 import lombok.RequiredArgsConstructor;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.beans.BeanUtils;
@@ -222,6 +223,20 @@
         if(query.getEnd()!=null) {
             query.setEnd(DateUtils.getDayEnd(query.getEnd()));
         }
+        if (query.getErrorType() != null) {
+            List<String> errorTypeList = new ArrayList<>();
+            errorTypeList.add(query.getErrorType());
+            if (ErrorType.ABNORMAL_PIC.getValue().equals(query.getErrorType())) {
+                //List娣诲姞涔嬪墠鍑犵宸ュ崟绫诲瀷
+                errorTypeList.add(ErrorType.SIGNAL_LOSS.getValue());
+                errorTypeList.add(ErrorType.SCREEN_COLOR_DEVIATION.getValue());
+                errorTypeList.add(ErrorType.SNOW_STORM.getValue());
+                errorTypeList.add(ErrorType.STRIPE_INTERFERENCE.getValue());
+                errorTypeList.add(ErrorType.SCREEN_OCCLUSION.getValue());
+                errorTypeList.add(ErrorType.ABNORMAL_CLARITY.getValue());
+            }
+            query.setErrorTypeList(errorTypeList);
+        }
         List<YwUnit> ywUnits = baseMapper.selectList(null);
         List<YwUnitVO> lists = ywUnits.stream().map(item -> {
             YwUnitVO vo = new YwUnitVO();

--
Gitblit v1.8.0