From c83101eb62f5d4906b9c01ceea6b21a37f9e84d8 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 18 十一月 2025 09:24:53 +0800
Subject: [PATCH] bug修复
---
ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java | 31 ++++++++++++++++++++++++++++---
1 files changed, 28 insertions(+), 3 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 ce8d7ae..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
@@ -1,16 +1,20 @@
package com.ycl.platform.domain.result.HK;
+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;
+
/**
- * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋�
+ * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋滐細杞﹁締锛堣鍥惧簱瀵规帴绋冲畾鎬с�佺偣浣嶅湪绾跨巼銆侊級
*
* @author gonghl
*/
@Data
-@Document(collection = "snapshot_data_monitor")
-public class SnapshotDataMonitorResult extends BaseResult{
+@Document(collection = "hk_snapshot_data_monitor")
+public class SnapshotDataMonitorResult extends BaseResult {
/**
* 鏁版嵁绫诲瀷
*/
@@ -60,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