From 9016cb8ec77bfab0962f0d6623a34f2b452733fb Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 10 四月 2025 10:00:17 +0800
Subject: [PATCH] 代码初始化
---
server/src/main/java/com/doumee/core/constants/Constants.java | 34 ++++++++++++++++++++++++++++++++++
server/src/main/java/com/doumee/service/business/impl/WorkorderServiceImpl.java | 2 +-
2 files changed, 35 insertions(+), 1 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 f864c8c..5e248fd 100644
--- a/server/src/main/java/com/doumee/core/constants/Constants.java
+++ b/server/src/main/java/com/doumee/core/constants/Constants.java
@@ -1,6 +1,7 @@
package com.doumee.core.constants;
import lombok.AllArgsConstructor;
+import lombok.Data;
import lombok.Getter;
import java.util.*;
@@ -205,6 +206,7 @@
}
+
public enum workOrderStatus{
waitConfirm( 0, "寰呭垎閰峎TS","寰呭垎閰峎TS",""),
waitAllocation(1, "寰呭垎閰嶄换鍔�","寰呭垎閰嶄换鍔�",""),
@@ -219,5 +221,37 @@
private String statusInfo;
private String logTitle;
private String noticeContent;
+
+ public int getStatus() {
+ return status;
+ }
+
+ public void setStatus(int status) {
+ 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;
+ }
}
}
diff --git a/server/src/main/java/com/doumee/service/business/impl/WorkorderServiceImpl.java b/server/src/main/java/com/doumee/service/business/impl/WorkorderServiceImpl.java
index 6a03643..4a94c08 100644
--- a/server/src/main/java/com/doumee/service/business/impl/WorkorderServiceImpl.java
+++ b/server/src/main/java/com/doumee/service/business/impl/WorkorderServiceImpl.java
@@ -80,7 +80,7 @@
//澶勭悊浜哄憳绫讳俊鎭�
this.dealNoticeData(workorder);
//澶勭悊SHE浜嬩欢鐘舵��
- workorder.setStatus(Constants.equalsInteger(workorder.getType(),Constants.ZERO)?Constants.workOrderStatus.close:Constants.workOrderStatus.waitConfirm);
+ workorder.setStatus(Constants.equalsInteger(workorder.getType(),Constants.ZERO)?Constants.workOrderStatus.close.getStatus():Constants.workOrderStatus.waitConfirm.getStatus());
workorderMapper.insert(workorder);
//瀛樺偍DCA 闂璁板綍琛�
this.saveProblemData(workorder);
--
Gitblit v1.9.3