dengjunjie
2024-11-14 c827fe7b0c5b3b444d76ba0d96a2649c764630dd
ÏîÄ¿´úÂë/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/StackerCraneJob/CommonStackerCraneJob.cs
@@ -104,9 +104,11 @@
                                        {
                                            task.ShuttleCarCode = ShuttleCar?.ShuttleCarCode;
                                            _taskService.UpdateData(task);
                                            SendTask(commonStackerCrane, task);//下发堆垛机任务
                                        }
                                    }
                                    SendTask(commonStackerCrane, task);//下发堆垛机任务
                                    else
                                        SendTask(commonStackerCrane, task);//下发堆垛机任务
                                }
                            }
@@ -135,7 +137,7 @@
                {
                    if (commonStackerCrane.SetValue(StackerCraneDBName.CommandSend, sendFlag))
                    {
                        commonStackerCrane.LastTaskType = task.TaskType;
                        if (task.TaskType != (int)TaskOtherTypeEnum.RelocationCar) commonStackerCrane.LastTaskType = task.TaskType;
                        _taskService.UpdateTaskStatusToNext(task.TaskNum);
                    }
                }
@@ -169,9 +171,12 @@
        {
            if (commonStackerCrane != null)
            {
                //if (_taskService.GetTaskInfo(commonStackerCrane.CurrentTaskNum) != null)
                //{
                Console.Out.WriteLine($"堆垛机任务完成:[{commonStackerCrane.CurrentTaskNum}];{DateTime.Now}");
                var Status = _taskService.StackCraneTaskCompleted(commonStackerCrane.CurrentTaskNum).Status;///需修改!!!!!!!!!!!!!!
                var Status = _taskService.StackCraneTaskCompleted(commonStackerCrane.CurrentTaskNum).Status;
                commonStackerCrane.SetValue(StackerCraneDBName.ConfirmComplete, Status);
                //}
            }
        }
        /// <summary>
@@ -330,7 +335,7 @@
                    return null;
                }
            }
            else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.RelocationGroup)
            else if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.RelocationGroup || task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OtherGroup)
            {
                string[] targetCodes = task.NextAddress.Split("-");
                if (targetCodes.Length == 3)