From f0428c0ce5831765142690676d1b337a84e90b8b Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <1247017146@qq.com>
Date: 星期四, 05 六月 2025 10:23:02 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/HuaYiZhongHeng/BaiBuSanLouNew

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

diff --git a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
index 26fcfbe..f25346f 100644
--- a/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
+++ b/CodeManagement/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob/CommonConveyorLineJob.cs
@@ -259,65 +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 == "2040" || platform.PlatCode == "2036" || platform.PlatCode == "2032" || platform.PlatCode == "2028" || platform.PlatCode == "2024")
+                        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
-                            //{
-                            //    //ConsoleHelper.WriteErrorLine("闈欑疆绌烘墭涓嶅厑璁稿嚭鏂�");
-                            //}
                         }
-                        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)
@@ -448,7 +410,6 @@
                                 // 濡傛灉宸叉湁浠诲姟鏁伴噺灏忎簬鎸囧畾绱㈠紩
                                 if (tasks.Count < Location.Count)
                                 {
-                                    ConsoleHelper.WriteSuccessLine($"{childDeviceCode}");
                                     return childDeviceCode;
                                 }
                                 else

--
Gitblit v1.9.3