From 45bcd3eb3f5e245636fb7295998c328de9d76f3e Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 10 四月 2025 10:20:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
server/src/main/java/com/doumee/core/constants/Constants.java | 71 +++++++++++++++++++++++++++++++----
1 files changed, 62 insertions(+), 9 deletions(-)
diff --git a/server/src/main/java/com/doumee/core/constants/Constants.java b/server/src/main/java/com/doumee/core/constants/Constants.java
index b35c5f1..6230b88 100644
--- a/server/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/src/main/java/com/doumee/core/constants/Constants.java
@@ -205,14 +205,67 @@
}
- public interface workOrderStatus{
- int waitConfirm = 0;
- int waitAllocation = 1;
- int waitDeal = 2;
- int sheClose = 3;
- int wtsClose = 4;
- int close = 5;
+ public enum WorkOrderStatus{
+ waitConfirm( 0, "寰呭垎閰峎TS","寰呭垎閰峎TS",""),
+ waitAllocation(1, "寰呭垎閰嶄换鍔�","寰呭垎閰嶄换鍔�",""),
+ waitDeal(2, "寰呭鐞�","寰呭鐞�",""),
+ sheClose(3, "宸茶В鍐�","SHE宸插叧闂�",""),
+ wtsClose(4, "宸茶В鍐�","WTS宸插叧闂�",""),
+ close(5, "宸茶В鍐�","宸茶В鍐�",""),
+ urge (6, "鍌績","","")
+ ;
+
+ private int status;
+ private String statusInfo;
+ private String logTitle;
+ private String noticeContent;
+
+ // 鏋勯�犳柟娉�
+ WorkOrderStatus(int status, String statusInfo,String logTitle,String noticeContent ) {
+ this.status = status;
+ this.statusInfo = statusInfo;
+ this.logTitle = logTitle;
+ this.noticeContent = noticeContent;
+ }
+ public static String getName(int index) {
+ for (WorkOrderStatus c : WorkOrderStatus.values()) {
+ if (c.getKey() == index) {
+ return c.statusInfo;
+ }
+ }
+ return null;
+ }
+
+ public int getKey() {
+ return status;
+ }
+
+ public void setKey(int key) {
+ this.status = status;
+ }
+
+ public String getStatusInfo() {
+ return statusInfo;
+ }
+
+ public void setStatusInfo(String statusInfo) {
+ this.statusInfo = statusInfo;
+ }
+
+ public String getLogTitle() {
+ return logTitle;
+ }
+
+ public void setLogTitle(String logTitle) {
+ this.logTitle = logTitle;
+ }
+
+ public String getNoticeContent() {
+ return noticeContent;
+ }
+
+ public void setNoticeContent(String noticeContent) {
+ this.noticeContent = noticeContent;
+ }
}
-
-
}
--
Gitblit v1.9.3