From c0b8cf32504dd1a42780bb1ee06ae8a7b0d7b120 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期三, 09 十月 2024 23:36:11 +0800
Subject: [PATCH] 指标数据

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/IndTimeLimitEnum.java |   41 +++++++++++++++++++++++++++++++++++++++++
 1 files changed, 41 insertions(+), 0 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/IndTimeLimitEnum.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/IndTimeLimitEnum.java
new file mode 100644
index 0000000..001bb29
--- /dev/null
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/common/enums/IndTimeLimitEnum.java
@@ -0,0 +1,41 @@
+package com.iailab.module.data.common.enums;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+
+/**
+ * @author PanZhibao
+ * @Description
+ * @createTime 2024年05月25日
+ */
+@Getter
+@AllArgsConstructor
+public enum IndTimeLimitEnum {
+
+    TODAY("TODAY", "今天"),
+    YESTERDAY("YESTERDAY", "昨天"),
+    LAST_DAY_7("LAST_DAY_7", "最近7天"),
+    LAST_DAY_30("LAST_DAY_30", "最近30天"),
+    THIS_MONTH("THIS_MONTH", "当前月"),
+    LAST_MONTH_12("LAST_MONTH_12", "最近12个月"),
+    THIS_YEAR_MONTH("THIS_YEAR_MONTH", "当年月份"),
+    LAST_YEAR("LAST_YEAR", "去年"),
+    THIS_YEAR("THIS_YEAR_MONTH", "今年"),
+    CUSTOM("CUSTOM", "自定义");
+
+    private String code;
+    private String desc;
+
+    public static IndTimeLimitEnum getEumByCode(String code) {
+        if (code == null) {
+            return null;
+        }
+
+        for (IndTimeLimitEnum statusEnum : IndTimeLimitEnum.values()) {
+            if (statusEnum.getCode().equals(code)) {
+                return statusEnum;
+            }
+        }
+        return null;
+    }
+}
\ No newline at end of file

--
Gitblit v1.9.3