From 346e8eafb9e91deb770d098ba5456aa533c015a1 Mon Sep 17 00:00:00 2001
From: Admin <Admin@ADMIN>
Date: 星期六, 28 三月 2026 12:36:43 +0800
Subject: [PATCH] 最新

---
 项目代码/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs"
index e011e25..e2681a5 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WIDESEAWCS_Server/WIDESEAWCS_TaskInfoService/WMSTaskService.cs"
@@ -185,9 +185,16 @@
                     //鏄惁鏈夎揣
                     int StationStatus = conveyorLine.Communicator.Read<ushort>(StationNumProDTO.DeviceProAddress);
 
-                    //鏈夎揣锛屽彲杩涗俊鍙�
-                    statusValue = ((portStatus == 1 && StationStatus == 1) || (portStatus == 2 && StationStatus == 0)) ? 1 : (portStatus == 0) ? 0 : 0;
 
+                    if(DeStateName=="F01" || DeStateName == "F06" || DeStateName == "F07")
+                    {
+                        //鏈夎揣锛屽彲杩涗俊鍙�
+                        statusValue = ((portStatus == 1 && StationStatus == 1) || (portStatus == 2 && StationStatus == 0)) ? 1 : (portStatus == 0) ? 0 : 0;
+                    }
+                    else
+                    {
+                        statusValue = StationStatus == 1 ? 0 : 1;
+                    }
                     portStatusDict[DeStateName] = statusValue;
                 }
 

--
Gitblit v1.9.3