helongyang
7 天以前 63d187526792e6e29bfec07d0e3f0dce07df31b3
代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/成品仓/AGV_CPExtend.cs
@@ -29,7 +29,7 @@
                    {
                        try
                        {
                            if (task.TaskType == TaskTypeEnum.OutProduct.ObjToInt())
                            if (task.TaskType.GetTaskTypeGroup() == TaskTypeGroup.OutbondGroup)
                                task.CurrentAddress = GetAGVAddress(task.CurrentAddress);
                            else
                                task.NextAddress = GetAGVAddress(task.NextAddress);
@@ -55,7 +55,7 @@
                            };
                            if (taskDTO.TaskTyp== "CPC")
                            {
                                taskDTO.Priority = (24 - DateTime.Now.Hour).ToString();
                                taskDTO.Priority = task.Grade.ToString();
                            }
                            if (task.GroupId.IsNotEmptyOrNull())
                            {
@@ -67,10 +67,12 @@
                                throw new Exception(content.Message);
                            if (taskDTO.TaskTyp == "CPC")
                            {
                                task.Dispatchertime = DateTime.Now;
                                _taskService.UpdateTask(task, TaskStatusEnum.AGV_Executing);
                            }
                            else
                            {
                                task.Dispatchertime = DateTime.Now;
                                _taskService.UpdateTask(task, TaskStatusEnum.AGV_Takeing);
                            }
                            Thread.Sleep(500);