From b8cd98f0a2d8a7e644563eb67d4c88371279a729 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <1247017146@qq.com>
Date: 星期三, 09 四月 2025 10:17:23 +0800
Subject: [PATCH] 1

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs |   44 ++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 42 insertions(+), 2 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
index f497bd2..3b62b3b 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageTaskServices/Task/Dt_TaskService.cs
@@ -819,7 +819,39 @@
                 if (stationManagers == null)
                     throw new Exception("鏈壘鍒扮┖鎵樼洏鍏ュ簱绔欏彴鍜屽叆搴撶珯鍙伴厤缃�");
             }
-            List<string> strings = stationManagers.Roadway.Split(',').ToList();
+            List<string> strings;
+            if (input.Position == "1016-3")
+            {
+                var configOne = _configService.GetByConfigKey(CateGoryConst.CONFIG_SYS_InStacker, SysConfigConst.CHInboundEmptyProductLineOne);
+                var configTwo = _configService.GetByConfigKey(CateGoryConst.CONFIG_SYS_InStacker, SysConfigConst.CHInboundEmptyProductLineTwo);
+
+                List<string>  productLineconfigOne = configOne.ConfigValue.Split(',').ToList();
+                List<string>  productLineconfigTwo = configTwo.ConfigValue.Split(',').ToList();
+
+                if (productLineconfigOne.Count == 0 && productLineconfigTwo.Count() == 0)
+                {
+                    ConsoleHelper.WriteErrorLine($"鏈壘鍒伴厤缃枃浠朵骇绾块厤缃�");
+                    return content.Error("鏈壘鍒伴厤缃枃浠朵骇绾块厤缃�");
+                }
+                if (productLineconfigOne.Contains(result.ProductionLine))
+                {
+                    strings = configOne.Remark.Split(',').ToList();
+                }
+                else if (productLineconfigTwo.Contains(result.ProductionLine))
+                {
+                    strings = configTwo.Remark.Split(',').ToList();
+                }
+                else
+                {
+                    ConsoleHelper.WriteErrorLine($"鏈壘鍒皗result.ProductionLine}瀵瑰簲閰嶇疆宸烽亾");
+                    return content.Error($"鏈壘鍒皗result.ProductionLine}瀵瑰簲閰嶇疆宸烽亾");
+                }   
+            }
+            else
+            {
+                strings = stationManagers.Roadway.Split(',').ToList();
+            }
+             
 
             return await CreateNewTask(input, result.ProductionLine, result.ProcessCode, strings, 1);
         }
@@ -1231,7 +1263,15 @@
             if (stockInfo.AreaCode.Contains("CH"))
             {
                 // 鍒涘缓骞舵坊鍔犱换鍔″埌鏁版嵁搴�
-                task = CreateTask(stockInfo, "1020-1", taskType);
+                if(stockInfo.LocationInfo.RoadwayNo=="CHSC1"|| stockInfo.LocationInfo.RoadwayNo == "CHSC2"|| stockInfo.LocationInfo.RoadwayNo == "CHSC3")
+                {
+                    task = CreateTask(stockInfo, "1020-1", taskType);
+                }
+                else
+                {
+                    task = CreateTask(stockInfo, "1049-1", taskType);
+                }
+                
             }
             else
             {

--
Gitblit v1.9.3