From c9e83423c4679ecee1fb7dff9b7e2aa02df494d7 Mon Sep 17 00:00:00 2001
From: 林致杰 <1003392067@qq.com>
Date: 星期五, 19 十一月 2021 17:56:17 +0800
Subject: [PATCH] MAQ_IAR导出报告兼容

---
 src/main/java/com/ots/common/enums/ReportTitle.java |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ots/common/enums/ReportTitle.java b/src/main/java/com/ots/common/enums/ReportTitle.java
new file mode 100644
index 0000000..d7942e2
--- /dev/null
+++ b/src/main/java/com/ots/common/enums/ReportTitle.java
@@ -0,0 +1,44 @@
+package com.ots.common.enums;
+
+/**
+ * @author zhijie
+ * @date 2021/03/19
+ * @Description: 鎶ュ憡閭欢鏍囬绫�
+ */
+public enum ReportTitle {
+    ZH("濮撳悕","Chinese", "%s鐨�%s娴嬭瘎鎶ュ憡闄勪笂浜�"),
+    US("Name","English", "%s's %s Report Is Attached"),
+    TAI("喔娻阜喙堗腑","Thai", "喔`覆喔⑧竾喔侧笝喔佮覆喔`笡喔`赴喙�喔∴复喔� %s 喔傕腑喔� %s"),
+    ;
+    public final String field;
+    public final String langType;
+    public final String reportTitle;
+
+
+
+    ReportTitle(String field,String langType, String reportTitle) {
+        this.field = field;
+        this.langType = langType;
+        this.reportTitle = reportTitle;
+    }
+
+    public static String getReportTitle(String langType) {
+        ReportTitle[] types = ReportTitle.values();
+        for (ReportTitle type : types) {
+            if (type.langType.equals(langType)) {
+                return type.reportTitle;
+            }
+        }
+        return "";
+    }
+
+    public static String getField(String langType) {
+        ReportTitle[] types = ReportTitle.values();
+        for (ReportTitle type : types) {
+            if (type.langType.equals(langType)) {
+                return type.field;
+            }
+        }
+        return "";
+    }
+}

--
Gitblit v1.9.1