From d6f915ecc8ee7efd5fcd3a205b57ef490b918fa5 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期三, 21 八月 2024 14:27:59 +0800
Subject: [PATCH] feat:数据中心数字增加中文字段

---
 ycl-pojo/src/main/java/com/ycl/platform/domain/result/HK/SnapshotDataMonitorResult.java |   22 ++++++++++++++++++++++
 1 files changed, 22 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 d343175..049c639 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
@@ -5,6 +5,8 @@
 import org.springframework.data.mongodb.core.index.TextIndexed;
 import org.springframework.data.mongodb.core.mapping.Document;
 
+import java.util.Objects;
+
 /**
  * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋滐細杞﹁締锛堣鍥惧簱瀵规帴绋冲畾鎬с�佺偣浣嶅湪绾跨巼銆侊級
  *
@@ -66,4 +68,24 @@
      */
     private int resultType;
 
+    /**
+     * 鎶撴媿鏁版嵁閲忕洃娴嬬粨鏋� 1:姝e父 2:鏃犳暟鎹� 3:鏁版嵁绐侀檷 4:鏁版嵁閲忓皯
+     */
+    private String resultTypeText;
+
+    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