From 685ba1842974c0a406449e5579c66d6c5a3510e3 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期二, 19 十一月 2024 22:26:02 +0800
Subject: [PATCH] 避免下发页面的新增导致的重复工单
---
ycl-common/src/main/java/enumeration/general/AreaDeptEnum.java | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ycl-common/src/main/java/enumeration/general/AreaDeptEnum.java b/ycl-common/src/main/java/enumeration/general/AreaDeptEnum.java
index 08c3d54..5d23b48 100644
--- a/ycl-common/src/main/java/enumeration/general/AreaDeptEnum.java
+++ b/ycl-common/src/main/java/enumeration/general/AreaDeptEnum.java
@@ -47,6 +47,13 @@
}
return null;
}
-
+ public static AreaDeptEnum fromName(String name) {
+ for (AreaDeptEnum type : AreaDeptEnum.values()) {
+ if (type.getName().equals(name) ) {
+ return type;
+ }
+ }
+ return null;
+ }
}
--
Gitblit v1.8.0