Bläddra i källkod

[task-6742]恒生医院 一个单独的消息提醒功能
缺陷修复

xiexh 4 månader sedan
förälder
incheckning
eb4b87dbdb

+ 57 - 0
ibps-provider-root/modules/provider-platform/src/main/java/com/lc/ibps/platform/util/BusinessEnum.java

@@ -0,0 +1,57 @@
+package com.lc.ibps.platform.util;
+
+public enum BusinessEnum {
+    /** configDailyJob 用 */
+    DAILY_JOB_1("DAILYJOB1", "主动咨询服务推送消息"),
+
+    EMPTY_STR("","空字符串"),
+
+    FALSE("false","FALSE",false),
+
+    TRUE("true","TRUE",true),
+
+    RECEIVER("RECEIVER","消息接收者"),
+
+    SYSTEM("system","系统"),
+
+    MESSAGE_JOB("SmpStorAndDisposalNotifiJob","消息发送类"),
+
+    /** messageType 消息类型 */
+    MSG_TYPE_INNER("inner","消息类型");
+
+    private  String code;
+    private  String description;
+    private  Boolean value;
+
+    private BusinessEnum(String code, String description) {
+        this(code, description, null);
+    }
+
+    private BusinessEnum(String code, String description, Boolean value) {
+        this.code = code;
+        this.description = description;
+        this.value = value;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public Boolean getValue() {
+        return value;
+    }
+
+    public static BusinessEnum getByCode(String code) {
+        for (BusinessEnum jobType : values()) {
+            if (jobType.getCode().equals(code)) {
+                return jobType;
+            }
+        }
+        throw new IllegalArgumentException("未知的业务代码: " + code);
+    }
+}
+

+ 2 - 0
ibps-provider-root/modules/provider-platform/src/main/java/com/lc/ibps/util/BusinessEnum.java

@@ -6,6 +6,8 @@ public enum BusinessEnum {
 
     EMPTY_STR("","空字符串"),
 
+    SEMICOLON(",","分号"),
+
     FALSE("false","FALSE",false),
 
     TRUE("true","TRUE",true),