From a27f1b573fc5cf9a3b78e2eacb56e44310f83456 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期三, 27 八月 2025 12:17:01 +0800
Subject: [PATCH] art: 添加入库逻辑,SAP订单同步参数动态配置

---
 src/main/java/org/jeecg/modules/lsw/enums/MaterialCategoryEnum.java |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/jeecg/modules/lsw/enums/MaterialCategoryEnum.java b/src/main/java/org/jeecg/modules/lsw/enums/MaterialCategoryEnum.java
index 4d49942..6037d5d 100644
--- a/src/main/java/org/jeecg/modules/lsw/enums/MaterialCategoryEnum.java
+++ b/src/main/java/org/jeecg/modules/lsw/enums/MaterialCategoryEnum.java
@@ -5,6 +5,14 @@
     OUTER_FLANGE, //澶栨硶鍏�
     INNER_FLANGE, //鍐呮硶鍏�
     COMPONENTS, //閰嶄欢
-    BLANK, //姣涘澂
-    ;
+    BLANK; //姣涘澂
+
+    public static MaterialCategoryEnum fromName(String name) {
+        for (MaterialCategoryEnum category : MaterialCategoryEnum.values()) {
+            if (category.name().equals(name)) {
+                return category;
+            }
+        }
+        return null;
+    }
 }

--
Gitblit v1.9.3