From ad4d32dc4e162ba7fb71cd3bc213f1d71c964551 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 13 五月 2025 14:30:57 +0800
Subject: [PATCH] 最新代码上传

---
 代码管理/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/成品仓/AGV_CPExtend.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs"
index 2a6d1fb..8909902 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/\346\210\220\345\223\201\344\273\223/AGV_CPExtend.cs"
@@ -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);

--
Gitblit v1.9.3