From f0e887dd32942c7897567261b9de1d26f576dfb6 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期三, 23 四月 2025 11:11:56 +0800
Subject: [PATCH] 通过单据创建DO单优化

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/AsnExceStatus.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/AsnExceStatus.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/AsnExceStatus.java
index 98148e4..b272641 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/AsnExceStatus.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/AsnExceStatus.java
@@ -24,4 +24,36 @@
     public Short val;
     public String desc;
 
+    public static String getExceStatus(Short val) {
+        if (val.equals(AsnExceStatus.ASN_EXCE_STATUS_UN_EXCE.val)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_UN_EXCE.desc;
+        } else if (val.equals(AsnExceStatus.ASN_EXCE_STATUS_EXCE_ING.val)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_EXCE_ING.desc;
+        } else if (val.equals(AsnExceStatus.ASN_EXCE_STATUS_TASK_DONE.val)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_TASK_DONE.desc;
+        } else if (val.equals(AsnExceStatus.ASN_EXCE_STATUS_TASK_CANCEL.val)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_TASK_CANCEL.desc;
+        } else if (val.equals(AsnExceStatus.ASN_EXCE_STATUS_TASK_CLOSE.val)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_TASK_CLOSE.desc;
+        } else {
+            return null;
+        }
+    }
+
+    public static Short getExcelStatusDesc(String desc) {
+        if (desc.equals(AsnExceStatus.ASN_EXCE_STATUS_UN_EXCE.desc)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_UN_EXCE.val;
+        } else if (desc.equals(AsnExceStatus.ASN_EXCE_STATUS_EXCE_ING.desc)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_EXCE_ING.val;
+        } else if (desc.equals(AsnExceStatus.ASN_EXCE_STATUS_TASK_DONE.desc)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_TASK_DONE.val;
+        } else if (desc.equals(AsnExceStatus.ASN_EXCE_STATUS_TASK_CANCEL.desc)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_TASK_CANCEL.val;
+        } else if (desc.equals(AsnExceStatus.ASN_EXCE_STATUS_TASK_CLOSE.desc)) {
+            return AsnExceStatus.ASN_EXCE_STATUS_TASK_CLOSE.val;
+        } else {
+            return null;
+        }
+    }
+
 }

--
Gitblit v1.9.1