From d864bab0b2104b35e8424084d6174efbc5538f32 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 15 一月 2025 16:28:08 +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