From f55ed1d2a1bdf4ad80930e879631d6d95d4b6c3c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期四, 28 八月 2025 18:57:38 +0800
Subject: [PATCH] RCS 库位同步接口调用 RCS任务下发接口功能调用 RCS 取消任务接口功能开发 RCS异常功回调功能开发

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/OrderWorkType.java |   50 +++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 1 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/OrderWorkType.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/OrderWorkType.java
index 8f8efb7..fe65c73 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/OrderWorkType.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/enums/OrderWorkType.java
@@ -15,6 +15,7 @@
     ORDER_WORK_TYPE_SALE("4", "閿�鍞��鍥炲叆搴撳崟"),
     ORDER_WORK_TYPE_OTHER_IN("5", "鍏跺畠鍏ュ簱鍗�"),
     ORDER_WORK_TYPE_OTHER_TERANSFER("6", "璋冩嫈鍏ュ簱鍗�"),
+    ORDER_WORK_TYPE_STOCK_REVISE("7", "搴撳瓨璋冩暣鍗�"),
     ORDER_WORK_TYPE_SUPPLIER("11", "閿�鍞嚭搴撳崟"),
     ORDER_WORK_TYPE_RETURN_ORDER("12", "棰嗘枡鍑哄簱鍗�"),
     ORDER_WORK_TYPE_PURCHASE_RETURN("13", "閲囪喘閫�鍥炲嚭搴撳崟"),
@@ -57,6 +58,49 @@
             return OrderWorkType.ORDER_WORK_TYPE_STOCK_CHECK.type;
         } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_TERANSFER.desc)) {
             return OrderWorkType.ORDER_WORK_TYPE_STOCK_TERANSFER.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER_TERANSFER.desc)) {
+            return OrderWorkType.ORDER_WORK_TYPE_OTHER_TERANSFER.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_REVISE.desc)) {
+            return OrderWorkType.ORDER_WORK_TYPE_STOCK_REVISE.type;
+        }
+        return null;
+    }
+
+    /**
+     * @author Ryan
+     * @date 2025/8/26
+     * @description: 鑾峰彇璁㈠崟绫诲瀷
+     * @version 1.0
+     */
+    public static String getOrderType(String desc) {
+        if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_DONE_IN.desc)) {
+            return OrderType.ORDER_IN.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_PROD.desc)) {
+            return OrderType.ORDER_IN.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_PURCHASE.desc)) {
+            return OrderType.ORDER_IN.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_SALE.desc)) {
+            return OrderType.ORDER_IN.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER_IN.desc)) {
+            return OrderType.ORDER_IN.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_SUPPLIER.desc)) {
+            return OrderType.ORDER_OUT.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_RETURN_ORDER.desc)) {
+            return OrderType.ORDER_OUT.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_PURCHASE_RETURN.desc)) {
+            return OrderType.ORDER_OUT.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER.desc)) {
+            return OrderType.ORDER_OUT.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_OUT.desc)) {
+            return OrderType.ORDER_OUT.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_CHECK.desc)) {
+            return OrderType.ORDER_CHECK.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_TERANSFER.desc)) {
+            return OrderType.ORDER_TRANSFER.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER_TERANSFER.desc)) {
+            return OrderType.ORDER_TRANSFER.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_REVISE.desc)) {
+            return OrderType.ORDER_REVISE.type;
         }
         return null;
     }
@@ -76,7 +120,7 @@
             return OrderWorkType.ORDER_WORK_TYPE_SUPPLIER.desc;
         } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_RETURN_ORDER.type)) {
             return OrderWorkType.ORDER_WORK_TYPE_RETURN_ORDER.desc;
-        }else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_PURCHASE_RETURN.type)) {
+        } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_PURCHASE_RETURN.type)) {
             return OrderWorkType.ORDER_WORK_TYPE_PURCHASE_RETURN.desc;
         } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER.type)) {
             return OrderWorkType.ORDER_WORK_TYPE_OTHER.desc;
@@ -86,6 +130,10 @@
             return OrderWorkType.ORDER_WORK_TYPE_STOCK_CHECK.desc;
         } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_TERANSFER.type)) {
             return OrderWorkType.ORDER_WORK_TYPE_STOCK_TERANSFER.desc;
+        } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER_TERANSFER.type)) {
+            return OrderWorkType.ORDER_WORK_TYPE_OTHER_TERANSFER.desc;
+        } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_REVISE.type)) {
+            return OrderWorkType.ORDER_WORK_TYPE_STOCK_REVISE.desc;
         }
         return null;
     }

--
Gitblit v1.9.1