From 346288bc38bdab442721d7609caed86d03b9d2d4 Mon Sep 17 00:00:00 2001
From: cjl <276999030@qq.com>
Date: Tue, 26 Sep 2023 19:25:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wb' into qa

---
 screen-api/src/main/java/com/moral/api/pojo/enums/FileTableEnum.java |   68 ++++++++++++++++++++++++++++++++++
 1 files changed, 68 insertions(+), 0 deletions(-)

diff --git a/screen-api/src/main/java/com/moral/api/pojo/enums/FileTableEnum.java b/screen-api/src/main/java/com/moral/api/pojo/enums/FileTableEnum.java
new file mode 100644
index 0000000..7907409
--- /dev/null
+++ b/screen-api/src/main/java/com/moral/api/pojo/enums/FileTableEnum.java
@@ -0,0 +1,68 @@
+package com.moral.api.pojo.enums;
+
+import com.baomidou.mybatisplus.annotation.EnumValue;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.moral.api.exception.BusinessException;
+import lombok.Getter;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * @ClassName StateEnum
+ * @Description TODO
+ * @Author @lizijie
+ * @Date 2023-09-20 11:11
+ * @Version 1.0
+ */
+@Getter
+@JsonFormat(shape = JsonFormat.Shape.OBJECT)
+public enum FileTableEnum implements IntegerValueEnum {
+    /**
+     *���������������
+     */
+    ALLOCATION_FOUNDATION(1010201, "���������������"),
+    /**
+     *���������������
+     */
+    ALLOCATION_RECTIFICATION(1010202, "���������������"),
+    /**
+     *���������������
+     */
+    ALLOCATION_APPROVE(1010203, "���������������"),
+
+    /**
+     *������������
+     */
+    ALLOCATION_EXTENSION(1251701, "������������"),
+
+    ;
+
+    @EnumValue
+    public  final Integer value;
+    public  final String name;
+
+    FileTableEnum(Integer value, String name) {
+        this.value = value;
+        this.name = name;
+    }
+
+    private static Map<Integer, FileTableEnum> valueMap = new HashMap<>();
+    static {
+        for (FileTableEnum v : FileTableEnum.values()) {
+            valueMap.put(v.value, v);
+        }
+    }
+    @JsonCreator
+    public static FileTableEnum getByValue(Integer value) {
+        if (value == null) {
+            return null;
+        }
+        FileTableEnum result = valueMap.get(value);
+        if (result == null) {
+            throw new BusinessException("������������������" + value);
+        }
+        return result;
+    }
+}

--
Gitblit v1.8.0