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

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java
index cea04d8..4365b71 100644
--- a/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java
+++ b/ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java
@@ -2,7 +2,10 @@
 
 import com.ycl.platform.domain.result.BaseResult;
 import lombok.Data;
+import org.springframework.data.mongodb.core.index.TextIndexed;
 import org.springframework.data.mongodb.core.mapping.Document;
+
+import java.util.Objects;
 
 /**
  * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋滐細杞﹁締锛堣鍥惧簱瀵规帴绋冲畾鎬с�佺偣浣嶅湪绾跨巼銆侊級
@@ -61,4 +64,25 @@
      */
     private int resultType;
 
+    /**
+     * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋� 1:姝e父 2:鏃犳暟鎹� 3:鏁版嵁绐侀檷 4:鏁版嵁閲忓皯
+     */
+    private String resultTypeText;
+
+    private String ip;
+    public String getResultTypeText() {
+        if (Objects.equals(resultType, 1)) {
+            resultTypeText = "姝e父";
+        }
+        if (Objects.equals(resultType, 2)) {
+            resultTypeText = "鏃犳暟鎹�";
+        }
+        if (Objects.equals(resultType, 3)) {
+            resultTypeText = "鏁版嵁绐侀檷";
+        }
+        if (Objects.equals(resultType, 4)) {
+            resultTypeText = "鏁版嵁閲忓皯";
+        }
+        return resultTypeText;
+    }
 }

--
Gitblit v1.8.0