From 10b88a7ff17caf92f3d4e8a550c1085a70c2517a Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期四, 28 五月 2026 17:43:26 +0800
Subject: [PATCH] Merge dev_New_pro into dev_山西_晋和园_pro

---
 src/main/java/com/ruoyi/common/enums/EnterpriseNewsStatusEnum.java |  143 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 143 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/common/enums/EnterpriseNewsStatusEnum.java b/src/main/java/com/ruoyi/common/enums/EnterpriseNewsStatusEnum.java
new file mode 100644
index 0000000..8e6e480
--- /dev/null
+++ b/src/main/java/com/ruoyi/common/enums/EnterpriseNewsStatusEnum.java
@@ -0,0 +1,143 @@
+package com.ruoyi.common.enums;
+
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.v3.oas.annotations.media.Schema;
+import lombok.Getter;
+
+/**
+ * 浼佷笟鏂伴椈鐘舵�佹灇涓剧被
+ *
+ * @author ruoyi
+ * @date 2026-05-20
+ */
+@Schema(description = "浼佷笟鏂伴椈鐘舵�佹灇涓�")
+public enum EnterpriseNewsStatusEnum implements BaseEnum<String> {
+
+    /**
+     * 鑽夌
+     */
+    @Schema(description = "鑽夌")
+    DRAFT("DRAFT", "鑽夌"),
+
+    /**
+     * 寰呭鎵�
+     */
+    @Schema(description = "寰呭鎵�")
+    PENDING("PENDING", "寰呭鎵�"),
+
+    /**
+     * 宸插彂甯�
+     */
+    @Schema(description = "宸插彂甯�")
+    PUBLISHED("PUBLISHED", "宸插彂甯�"),
+
+    /**
+     * 椹冲洖
+     */
+    @Schema(description = "椹冲洖")
+    REJECTED("REJECTED", "椹冲洖"),
+
+    /**
+     * 宸蹭笅绾�
+     */
+    @Schema(description = "宸蹭笅绾�")
+    OFFLINE("OFFLINE", "宸蹭笅绾�");
+
+    /**
+     * 鐘舵�佺爜
+     */
+    private final String code;
+
+    /**
+     * 鐘舵�佹弿杩�
+     * -- GETTER --
+     *  鑾峰彇鐘舵�佹弿杩�
+     *
+     * @return 鐘舵�佹弿杩�
+
+     */
+    @Getter
+    private final String description;
+
+    EnterpriseNewsStatusEnum(String code, String description) {
+        this.code = code;
+        this.description = description;
+    }
+
+    /**
+     * 鑾峰彇鐘舵�佺爜
+     *
+     * @return 鐘舵�佺爜
+     */
+    @JsonValue
+    public String getCode() {
+        return code;
+    }
+
+    @Override
+    public String getValue() {
+        return "";
+    }
+
+    /**
+     * 鏍规嵁鐘舵�佺爜鑾峰彇鏋氫妇
+     *
+     * @param code 鐘舵�佺爜
+     * @return 鏋氫妇鍊�
+     */
+    @JsonCreator
+    public static EnterpriseNewsStatusEnum getByCode(String code) {
+        for (EnterpriseNewsStatusEnum status : values()) {
+            if (status.code.equals(code)) {
+                return status;
+            }
+        }
+        throw new IllegalArgumentException("Invalid enterprise news status code: " + code);
+    }
+
+    /**
+     * 鍒ゆ柇鏄惁涓鸿崏绋跨姸鎬�
+     *
+     * @return 鏄惁涓鸿崏绋跨姸鎬�
+     */
+    public boolean isDraft() {
+        return DRAFT.equals(this);
+    }
+
+    /**
+     * 鍒ゆ柇鏄惁涓哄緟瀹℃壒鐘舵��
+     *
+     * @return 鏄惁涓哄緟瀹℃壒鐘舵��
+     */
+    public boolean isPending() {
+        return PENDING.equals(this);
+    }
+
+    /**
+     * 鍒ゆ柇鏄惁涓哄凡鍙戝竷鐘舵��
+     *
+     * @return 鏄惁涓哄凡鍙戝竷鐘舵��
+     */
+    public boolean isPublished() {
+        return PUBLISHED.equals(this);
+    }
+
+    /**
+     * 鍒ゆ柇鏄惁涓洪┏鍥炵姸鎬�
+     *
+     * @return 鏄惁涓洪┏鍥炵姸鎬�
+     */
+    public boolean isRejected() {
+        return REJECTED.equals(this);
+    }
+
+    /**
+     * 鍒ゆ柇鏄惁涓哄凡涓嬬嚎鐘舵��
+     *
+     * @return 鏄惁涓哄凡涓嬬嚎鐘舵��
+     */
+    public boolean isOffline() {
+        return OFFLINE.equals(this);
+    }
+}

--
Gitblit v1.9.3