Sfoglia il codice sorgente

Merge branch 'develop' of com_yunfei_saas/agmp_iot_common into master

yf_zn 9 mesi fa
parent
commit
a553100486

+ 18 - 0
src/main/java/com/yunfeiyun/agmp/iot/common/enums/ybq/YbqTypeConst.java

@@ -42,5 +42,23 @@ public enum YbqTypeConst {
         return message;
         return message;
     }
     }
 
 
+    public static YbqTypeConst getByCode(String code) {
+        for (YbqTypeConst type : values()) {
+            if (type.getCode().equals(code)) {
+                return type;
+            }
+        }
+        return null;
+    }
+
+    public static YbqTypeConst getByServiceName(String serviceName) {
+        for (YbqTypeConst type : values()) {
+            if (type.getServiceName().equals(serviceName)) {
+                return type;
+            }
+        }
+        return null;
+    }
+
 
 
 }
 }