From a4342e58b21d24428285f78abb95d6a87ccf5979 Mon Sep 17 00:00:00 2001
From: 陈勇 <竞男@ASUNA>
Date: 星期一, 30 三月 2026 16:02:36 +0800
Subject: [PATCH] 同步

---
 项目代码/WCS/WCSServer/WIDESEAWCS_Tasks/SC/SCJob.cs |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Tasks/SC/SCJob.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Tasks/SC/SCJob.cs"
index 4bca260..41a4196 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Tasks/SC/SCJob.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WCSServer/WIDESEAWCS_Tasks/SC/SCJob.cs"
@@ -67,11 +67,10 @@
                 if (flag && value != null && value is STK commonStackerCrane)
                 {
                     List<string> childCodes = commonStackerCrane.DeviceProDTOs.GroupBy(d => d.DeviceChildCode).Select(g => g.Key).ToList();
+                    childCodes = new List<string> { "SC01", "SC03", "SC05", "SC07" };  //娴嬭瘯浣跨敤
                     Parallel.For(0, childCodes.Count, (i, state) =>
                     {
-
                         //ConsoleHelper.WriteColorLine($"銆恵childCodes[i]}銆戞椂闂淬�恵DateTime.Now}銆戙�戙�恵Thread.CurrentThread.ManagedThreadId}銆�", ConsoleColor.Magenta);
-
                         if (commonStackerCrane.GetValue<StackerCraneDBName, Int16>(StackerCraneDBName.TaskState, childCodes[i]) == 2)
                         {
                             int taskNum = commonStackerCrane.GetValue<StackerCraneDBName, int>(StackerCraneDBName.TaskNum, childCodes[i]);
@@ -137,15 +136,13 @@
 
                                     Thread.Sleep(500);
                                     WebResponseContent responseContent = SendStackerTask(commonStackerCrane, task, childCodes[i]);
-                                    if(responseContent.Status)
+                                    if (responseContent.Status)
                                     {
                                         _taskService.UpdateTaskStatusToNext(task.TaskNum);
                                     }
                                     //StackerExecutor.SendStackerTask(commonStackerCrane, task, childCodes[i]);
                                     //bool sendFlag = commonStackerCrane.SendCommand(stackerCraneTaskCommand, childCodes[i]);
                                     //commonStackerCrane.LastTaskType = task.TaskType;
-
-                                    
                                 }
                                 //}
                             }
@@ -257,7 +254,7 @@
         {
             //return task;
 
-            var stationList = _stationManagerRepository.QueryData(x => x.stationType == 2 && x.Roadway == task.Roadway);
+            //var stationList = _stationManagerRepository.QueryData(x => x.stationType == 2 && x.Roadway == task.Roadway);
 
             //foreach (var item in stationList)
             //{
@@ -381,7 +378,7 @@
             {
                 return responseContent.Error(ex.Message);
             }
-            
+
 
         }
     }

--
Gitblit v1.9.3