From b91c166e2da452578c71423138a0291558b36344 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期五, 25 七月 2025 15:43:15 +0800
Subject: [PATCH] 1

---
 项目代码/WCS/WCSServices/WIDESEAWCS_TaskInfoService/TaskService.cs |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_TaskInfoService/TaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_TaskInfoService/TaskService.cs"
index 17eb286..200d3ac 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_TaskInfoService/TaskService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServices/WIDESEAWCS_TaskInfoService/TaskService.cs"
@@ -251,6 +251,15 @@
                                 task.NextAddress = router.NextPosi;
                             }
                         }
+                        else
+                        {
+                            if (taskTypeGroup == TaskTypeGroup.InboundGroup)
+                            {
+                                task.CurrentAddress = router.StartPosi;
+                                task.NextAddress = "";
+                                task.DeviceCode = router.ChildPosiDeviceCode;
+                            }
+                        }
                     }
                     tasks.Add(task);
                 }
@@ -315,13 +324,14 @@
             return content;
         }
 
-        /// <summary>
-        /// 
+        // <summary>
+        /// 璇锋眰鍏ュ簱浠诲姟
         /// </summary>
-        /// <param name="palletCode"></param>
-        /// <param name="sourceAddress"></param>
+        /// <param name="palletCode">鎵樼洏鍙�</param>
+        /// <param name="sourceAddress">璧峰鍦板潃</param>
+        /// /// <param name="roadWay">宸烽亾</param>
         /// <returns></returns>
-        public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, int taskType=630)
+        public WebResponseContent RequestWMSTaskSimple(string palletCode, string sourceAddress, string roadWay="", int taskType=630)
         {
             WebResponseContent content = new WebResponseContent();
             try
@@ -343,7 +353,7 @@
                     Id = 1,
                     TaskNum = DateTime.Now.ToString("mmss").ObjToInt(),
                     PalletCode="",
-                    RoadWay="",
+                    RoadWay= roadWay ?? "",
                     TaskType= taskType,
                     PalletType=1,
                     TaskStatus=TaskStatusEnum.New.ObjToInt(),

--
Gitblit v1.9.3