|
|
@@ -1,57 +0,0 @@
|
|
|
-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);
|
|
|
- }
|
|
|
-}
|
|
|
-
|