From bdb75323b6c677135d74ff84ac760ca8ea554da4 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <1247017146@qq.com>
Date: 星期四, 17 四月 2025 17:54:22 +0800
Subject: [PATCH] 1

---
 CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
index 82cde70..a24ef13 100644
--- a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
+++ b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -501,6 +501,7 @@
                     Dt_Task? newTask = _taskService.UpdatePosition(task.TaskNum, task.CurrentAddress);
                     if (newTask != null)
                     {
+                        
                         //ConveyorLineTaskCommand taskCommand = _mapper.Map<ConveyorLineTaskCommand>(newTask);
                         //taskCommand.InteractiveSignal = command.InteractiveSignal;
                         var next = newTask.NextAddress;
@@ -516,6 +517,7 @@
                         conveyorLine.SendCommand(taskCommand, childDeviceCode);
 
                         ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true);
+
                         _taskService.UpdateData(newTask);
                     }
                 }
@@ -677,6 +679,7 @@
                     // 濡傛灉鏇存柊鍚庣殑浠诲姟瀵硅薄涓嶄负绌�
                     if (newTask != null)
                     {
+                        //_taskService.UpdateData(newTask);
                         // 鑾峰彇涓嬩竴鐩爣鍦板潃
                         var next = newTask.NextAddress;
 
@@ -698,6 +701,7 @@
 
                         // 鏍囪杈撻�佺嚎鍙戦�佷换鍔″畬鎴�
                         ConveyorLineSendFinish(conveyorLine, childDeviceCode, ProtocalDetailValue, true);
+
                         _taskService.UpdateData(newTask);
                     }
                 }

--
Gitblit v1.9.3