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 |   63 ++++++++++++++++++++++++++++++-
 1 files changed, 61 insertions(+), 2 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 df2cbda..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
@@ -14,10 +14,14 @@
     ORDER_WORK_TYPE_PURCHASE("3", "棰嗘枡閫�鍥炲叆搴撳崟"),
     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", "閲囪喘閫�鍥炲嚭搴撳崟"),
     ORDER_WORK_TYPE_STOCK_OUT("15", "搴撳瓨鍑哄簱"),
+    ORDER_WORK_TYPE_STOCK_CHECK("16", "鐩樼偣鍑哄簱"),
+    ORDER_WORK_TYPE_STOCK_TERANSFER("17", "璋冩嫈鍑哄簱鍗�"),
     ORDER_WORK_TYPE_OTHER("14", "鍏跺畠鍑哄簱鍗�");
 
 
@@ -48,8 +52,55 @@
             return OrderWorkType.ORDER_WORK_TYPE_PURCHASE_RETURN.type;
         } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_OTHER.desc)) {
             return OrderWorkType.ORDER_WORK_TYPE_OTHER.type;
-        }else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_OUT.desc)) {
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_OUT.desc)) {
             return OrderWorkType.ORDER_WORK_TYPE_STOCK_OUT.type;
+        } else if (desc.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_CHECK.desc)) {
+            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;
     }
@@ -69,12 +120,20 @@
             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;
         } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_OUT.type)) {
             return OrderWorkType.ORDER_WORK_TYPE_STOCK_OUT.desc;
+        } else if (type.equals(OrderWorkType.ORDER_WORK_TYPE_STOCK_CHECK.type)) {
+            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