From a1278f8b1edebde8114ca4add0f32d74495a835b Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 20 二月 2025 14:21:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- 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