From 8c0e2ca5bc6153ba0bd894523b8f6047941edab2 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期六, 11 十月 2025 16:21:47 +0800
Subject: [PATCH] 优化任务查询与信号处理逻辑,添加二进制文件在多个文件中优化任务查询与信号处理逻辑: - `TaskService.cs`:`QueryExecutingConveyorLineTask` 方法新增托盘码校验。 - `CommonConveyorLine_BZJob.cs`:新增信号读取与在途数据处理逻辑。 - `CommonConveyorLine_CWJob.cs`:新增站点查询与信号处理逻辑。 - `CommonConveyorLine_GWJob.cs` 和 `CommonConveyorLine_NewCWJob.cs`:   - 删除冗余注释代码。   - 增加站点查询与信号处理逻辑。 - 添加多个二进制文件:`CodeChunks.db`、`SemanticSymbols.db` 等。

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs |   37 +++++++++++++++++++++++++++++++++++++
 1 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs
index a1786ad..95298d9 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/MOM/AgingInOrOutInput/AgingInOrOutInputService.cs
@@ -122,4 +122,41 @@
         }
         return content;
     }
+
+
+    public async Task<WebResponseContent> Change(EqptRunDto input)
+    {
+        WebResponseContent content = new WebResponseContent();
+        try
+        {
+            input.SessionId = Guid.NewGuid().ToString();
+            input.EmployeeNo = "MITest";
+            input.RequestTime = TimeZoneInfo.ConvertTimeToUtc(DateTime.Now).ToString("yyyy-MM-ddTHH:mm:ss.fffZ");
+            var inputJson = Masuit.Tools.ObjectExtensions.ToDictionary(input); // Specify the namespace explicitly
+            var configs = _configService.GetConfigsByCategory(CateGoryConst.SYS_MOMIPAddress);
+            var MOMBase = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.MOMBaseIP)?.ConfigValue;
+            var ipAddress = configs.FirstOrDefault(x => x.ConfigKey == SysConfigConst.EqptRun)?.ConfigValue;
+            if (MOMBase == null || ipAddress == null)
+            {
+                throw new InvalidOperationException("WMS IP 鏈厤缃�");
+            }
+            var MOMIpAddress = MOMBase + ipAddress;
+
+            var result = HttpsClient.PostAsync(MOMIpAddress, inputJson).Result;
+
+            //var respone = JsonConvert.DeserializeObject<EqptRunDTO>(result.ToString());
+            
+            content.OK(data: result);
+            LogFactory.GetLog("鎹㈠瀷").Info(true, $"\r\r--------------------------------------");
+            LogFactory.GetLog("鎹㈠瀷").Info(true, input.EquipmentCode);
+            LogFactory.GetLog("鎹㈠瀷").Info(true, result);
+        }
+        catch (Exception err)
+        {
+            LogFactory.GetLog("鎹㈠瀷").Error(true, $"\r\r--------------------------------------");
+            LogFactory.GetLog("鎹㈠瀷").Error(true, err.StackTrace);
+            content.Error(err.Message);
+        }
+        return content;
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3