huangxiaoqiang
2026-03-30 7db419acdd2c02950b67c081dd2d7f61fdb2cb89
ÏîÄ¿´úÂë/WCS/WCSServer/WIDESEAWCS_Tasks/SC/SCJob.cs
@@ -67,6 +67,7 @@
                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);
@@ -135,7 +136,7 @@
                                    Thread.Sleep(500);
                                    WebResponseContent responseContent = SendStackerTask(commonStackerCrane, task, childCodes[i]);
                                    if(responseContent.Status)
                                    if (responseContent.Status)
                                    {
                                        _taskService.UpdateTaskStatusToNext(task.TaskNum);
                                    }
@@ -253,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)
            //{
@@ -377,7 +378,7 @@
            {
                return responseContent.Error(ex.Message);
            }
        }
    }