From adf52922fbe13bc6c164b5dafeb0e445ca2f214f Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期五, 17 一月 2025 14:15:52 +0800
Subject: [PATCH] WCS返回出库完成信号 更改

---
 Wms/WMS.BLL/LogServer/TaskServer.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/Wms/WMS.BLL/LogServer/TaskServer.cs b/Wms/WMS.BLL/LogServer/TaskServer.cs
index c49a452..2228a6e 100644
--- a/Wms/WMS.BLL/LogServer/TaskServer.cs
+++ b/Wms/WMS.BLL/LogServer/TaskServer.cs
@@ -119,7 +119,29 @@
             }
         }
 
-        public string GetTaskOrderType(string taskNo)
+        public string GetTaskOrderType(string taskNo,string tasktype)
+        {
+            try
+            {
+                if (tasktype == "1")
+                {
+                     taskNo = taskNo.Substring(0, taskNo.Length - 3);
+                }
+                var task = Db.Queryable<LogTask>().First(m => m.TaskNo == taskNo);
+                if (task == null)
+                {
+                    throw new Exception($"鏈煡璇㈠埌{taskNo}浠诲姟鍙风殑浠诲姟淇℃伅");
+                }
+
+                return task.OrderType;
+            }
+            catch (Exception e)
+            {
+                throw new Exception(e.Message);
+            }
+        }
+
+        public string GetTaskType(string taskNo)
         {
             try
             {
@@ -129,7 +151,7 @@
                     throw new Exception($"鏈煡璇㈠埌{taskNo}浠诲姟鍙风殑浠诲姟淇℃伅");
                 }
 
-                return task.OrderType;
+                return task.Type;
             }
             catch (Exception e)
             {

--
Gitblit v1.8.0