From b6fa58652c12f0c61409cc44dfd8ad78f821b6c6 Mon Sep 17 00:00:00 2001
From: liyj <1003249715@qq.com>
Date: Wed, 11 Sep 2024 01:19:25 +0800
Subject: [PATCH] 1、流程bug修复
---
dyh-service/dyh-base/src/main/java/cn/huge/module/disp/constant/DispBaseConstsEnum.java | 75 +++++++++++++++++++++++++++++++++++++
1 files changed, 75 insertions(+), 0 deletions(-)
diff --git a/dyh-service/dyh-base/src/main/java/cn/huge/module/disp/constant/DispBaseConstsEnum.java b/dyh-service/dyh-base/src/main/java/cn/huge/module/disp/constant/DispBaseConstsEnum.java
new file mode 100644
index 0000000..b96bc3e
--- /dev/null
+++ b/dyh-service/dyh-base/src/main/java/cn/huge/module/disp/constant/DispBaseConstsEnum.java
@@ -0,0 +1,75 @@
+package cn.huge.module.disp.constant;
+
+/**
+ * @title: 调度相关常量枚举类
+ * @description: 调度相关常量枚举类
+ * @company: hugeinfo
+ * @author: xuxj
+ * @time: 2022-03-25 16:51:48
+ * @version: 1.0.0
+ */
+public enum DispBaseConstsEnum {
+
+ /**
+ * 调度类型:22_00012-1:归口分流,22_00012-2:加入抢单池
+ */
+ DISP_TYPE_1("22_00012-1", "归口分流"),
+ DISP_TYPE_2("22_00012-2", "加入抢单池"),
+
+ /**
+ * 调度目标类型,22_00038-1:调度给调解组织,22_00038-2:调度给调解员
+ */
+ TARGET_TYPE_1("22_00038-1", "调度给调解组织"),
+ TARGET_TYPE_2("22_00038-2", "调度给调解员");
+
+
+ /**
+ * 代码编号
+ */
+ private String index;
+
+ /**
+ * 描述
+ */
+ private String des;
+
+ public String getIndex() {
+ return index;
+ }
+
+ public void setIndex(String index) {
+ this.index = index;
+ }
+
+ public String getDes() {
+ return des;
+ }
+
+ public void setDes(String desc) {
+ this.des = desc;
+ }
+
+ /**
+ * 构造方法
+ * @param index
+ * @param des
+ */
+ DispBaseConstsEnum(String index, String des) {
+ this.index = index;
+ this.des = des;
+ }
+
+ /**
+ * 静态方法
+ * @param index
+ * @return
+ */
+ public static String getDes(String index) {
+ for (DispBaseConstsEnum constantEnum : DispBaseConstsEnum.values()) {
+ if (constantEnum.getIndex().equals(index)) {
+ return constantEnum.des;
+ }
+ }
+ return null;
+ }
+}
--
Gitblit v1.8.0