From a4c8fa1c25d1755356afe2bfa21a66125254ce47 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <1247017146@qq.com>
Date: 星期二, 03 六月 2025 14:09:22 +0800
Subject: [PATCH] 1

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

diff --git a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
index de1b8fb..f25346f 100644
--- a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
+++ b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -259,61 +259,27 @@
                     Platform platform = _platFormRepository.QueryFirst(x => x.DeviceCode == conveyorLine.DeviceCode && x.PlatCode == childDeviceCode && x.Status == "Active");
                     if (platform != null && !string.IsNullOrEmpty(platform.Location))
                     {
-                        if (platform.PlatCode == "1299" || platform.PlatCode == "1295" || platform.PlatCode == "1291" || platform.PlatCode == "1287" || platform.PlatCode == "1283")
+                        var strings = platform.Location.Split(',').ToList();
+                        foreach (var ite in strings)
                         {
-                            Platform platformJZ = _platFormRepository.QueryFirst(x => x.PlatCode == "10086" && x.Status == "Active");
-                            if (platformJZ != null)
+                            // 璇诲彇浠诲姟鍛戒护
+                            ConveyorLineTaskCommand command1 = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(ite);
+                            if (command1.InteractiveSignal != 2)
                             {
-                                var strings = platform.Location.Split(',').ToList();
-                                foreach (var ite in strings)
+                                command.InteractiveSignal = writeInteractiveSignal;
+                                int count = strings.Count;
+                                // 鑾峰彇澶勭悊鏂规硶
+                                MethodInfo? method = GetType().GetMethod(platform.ExecutionMethod);
+                                if (method != null)
                                 {
-                                    // 璇诲彇浠诲姟鍛戒护
-                                    ConveyorLineTaskCommand command1 = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(ite);
-                                    if (command1.InteractiveSignal != 2)
-                                    {
-                                        command.InteractiveSignal = writeInteractiveSignal;
-                                        int count = strings.Count;
-                                        // 鑾峰彇澶勭悊鏂规硶
-                                        MethodInfo? method = GetType().GetMethod(platform.ExecutionMethod);
-                                        if (method != null)
-                                        {
-                                            command.InteractiveSignal = commandWrite.WriteInteractiveSignal;
-                                            // 璋冪敤澶勭悊鏂规硶
-                                            method.Invoke(this, new object[] { conveyorLine, command, childDeviceCode, count, platform });
-                                        }
-                                        
-                                    }
+                                    command.InteractiveSignal = commandWrite.WriteInteractiveSignal;
+                                    // 璋冪敤澶勭悊鏂规硶
+                                    method.Invoke(this, new object[] { conveyorLine, command, childDeviceCode, count, platform });
                                 }
+
                             }
                         }
-                        else
-                        {
-                            var strings = platform.Location.Split(',').ToList();
-                            foreach (var ite in strings)
-                            {
-                                // 璇诲彇浠诲姟鍛戒护
-                                ConveyorLineTaskCommand command1 = conveyorLine.ReadCustomer<ConveyorLineTaskCommand>(ite);
-                                if (command1.InteractiveSignal != 2)
-                                {
-                                    command.InteractiveSignal = writeInteractiveSignal;
-                                    int count = strings.Count;
-                                    // 鑾峰彇澶勭悊鏂规硶
-                                    MethodInfo? method = GetType().GetMethod(platform.ExecutionMethod);
-                                    if (method != null)
-                                    {
-                                        command.InteractiveSignal = commandWrite.WriteInteractiveSignal;
-                                        // 璋冪敤澶勭悊鏂规硶
-                                        method.Invoke(this, new object[] { conveyorLine, command, childDeviceCode, count, platform });
-                                    }
-                                    
-                                }
-                            }
-                        } 
                     }
-                    //if (conveyorLine.DeviceCode == "1001")
-                    //{
-                    //    ConsoleHelper.WriteSuccessLine("ProcessDeviceAsync鏂规硶缁撴潫鏃堕棿锛�" + DateTime.Now.ToString("G") + $"鐐逛綅锛歿childDeviceCode}");
-                    //}
                 }
             }
             catch (Exception ex)

--
Gitblit v1.9.3