From b6a40a2d8fdcffb3accfc7e424c0726a87a59ddf Mon Sep 17 00:00:00 2001
From: heshaofeng <heshaofeng@hnkhzn.com>
Date: 星期五, 05 十二月 2025 21:20:59 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ESSController.cs |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ESSController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ESSController.cs"
index 6cfedd4..ba22c1c 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ESSController.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_WMSServer/Controllers/ESSController.cs"
@@ -287,8 +287,7 @@
         /// </summary>
         private async Task HandleTaskSuspended(StatusCallbackRequest request)
         {
-            _logger.LogWarning("浠诲姟鎸傝捣: TaskCode={TaskCode}, 绯荤粺浠诲姟鐮�={SysTaskCode}, 鍘熷洜={Message}",
-                request.TaskCode, request.SysTaskCode, request.Message);
+            _logger.LogWarning("浠诲姟鎸傝捣: TaskCode={TaskCode}, 绯荤粺浠诲姟鐮�={SysTaskCode}, 鍘熷洜={Message}",request.TaskCode, request.SysTaskCode, request.Message);
 
             // 杩欓噷娣诲姞鎮ㄧ殑鎸傝捣澶勭悊閫昏緫
             await Task.CompletedTask;
@@ -299,8 +298,7 @@
         /// </summary>
         private async Task HandleTaskAllocated(StatusCallbackRequest request)
         {
-            _logger.LogInformation("浠诲姟鍒嗛厤: TaskCode={TaskCode}, Robot={Robot}",
-                request.TaskCode, request.RobotCode);
+            _logger.LogInformation("浠诲姟鍒嗛厤: TaskCode={TaskCode}, Robot={Robot}",request.TaskCode, request.RobotCode);
 
             // 杩欓噷娣诲姞鎮ㄧ殑浠诲姟鍒嗛厤澶勭悊閫昏緫
             await Task.CompletedTask;
@@ -313,8 +311,9 @@
         {
             if (request.Status == WIDESEA_DTO.Basic.TaskStatus.success)
             {
-                _logger.LogInformation("鍙栫瀹屾垚: Container={Container}, Location={Location}",
-                    request.ContainerCode, request.LocationCode);
+                _logger.LogInformation("鍙栫瀹屾垚: Container={Container}, Location={Location}", request.ContainerCode, request.LocationCode);
+
+                await _taskService.TaskStatusChange(request.TaskCode, WIDESEA_Common.TaskEnum.TaskStatusEnum.AGV_Pull);
             }
             else
             {
@@ -333,8 +332,8 @@
         {
             if (request.Status == WIDESEA_DTO.Basic.TaskStatus.success)
             {
-                _logger.LogInformation("鏀剧瀹屾垚: Container={Container}, Location={Location}",
-                    request.ContainerCode, request.LocationCode);
+                _logger.LogInformation("鏀剧瀹屾垚: Container={Container}, Location={Location}", request.ContainerCode, request.LocationCode);
+                await _taskService.TaskStatusChange(request.TaskCode, WIDESEA_Common.TaskEnum.TaskStatusEnum.AGV_Puting);
             }
             else
             {

--
Gitblit v1.9.3