From 06e0e3b7d61e95902a6129de2490461cd0693e1d Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期三, 15 十月 2025 15:06:40 +0800
Subject: [PATCH] 新增异步方法并优化服务调用逻辑在多个数据库文件中进行了二进制文件的修改、删除和新增操作,可能涉及数据库内容的更新或重建。在 HttpsClient.cs文件中新增了 PostNotLimitAsync方法,用于发送支持 JSON 格式的异步 HTTP POST 请求,并记录请求和响应参数。在 AgingInOrOutInputService.cs文件中,将 HttpsClient.PostAsync替换为PostNotLimitAsync,以利用新方法的功能特性。同时删除了不再需要的注释代码。

---
 Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_CW/CWTask/RequestInbound.cs |   21 ++++-----------------
 1 files changed, 4 insertions(+), 17 deletions(-)

diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_CW/CWTask/RequestInbound.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_CW/CWTask/RequestInbound.cs
index b15cf35..987db4f 100644
--- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_CW/CWTask/RequestInbound.cs
+++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Tasks/ConveyorLineJob_CW/CWTask/RequestInbound.cs
@@ -169,22 +169,6 @@
                     break;
                 case 1:
 
-                    //if (stationManager.stationArea.Contains("GW"))
-                    //{
-                    //var taskGW = _taskRepository.QueryFirst(x => x.TargetAddress == childDeviceCode && (x.TaskState == (int)TaskOutStatusEnum.OutFinish || x.TaskState == (int)TaskOutStatusEnum.OutPending));
-                    //if (taskGW != null)
-                    //{
-                    //    command.ConveyorLineBarcode = taskGW.PalletCode;
-                    //}
-                    //}
-                    //濡傞珮娓╁嚭搴撳悗浠诲姟鏍囪NG寮傚父鍒欏皢浠诲姟鏇存柊涓哄紓甯告帓鍑轰换鍔�   --鍐犲畤鍙栨秷瓒呮椂妫�娴嬪悗  鎵樼洏瓒呮椂涓嶅湪鍑哄簱鑷冲紓甯稿彛
-                    //Dt_Task NGtask = _taskRepository.QueryFirst(x => x.Remark == "NG" && x.Roadway == stationManager.Roadway && x.Roadway.Contains("GW"));
-                    //if (NGtask != null)
-                    //{
-                    //    CreateAbNormalOutbound(conveyorLine, command, childDeviceCode, NGtask);
-                    //    break;
-                    //}
-
                     RequestWmsTask(conveyorLine, command, childDeviceCode, stationManager);
                     break;
             }
@@ -296,7 +280,9 @@
                 throw new InvalidOperationException("WMS IP 鏈厤缃�");
             }
             var wmsIpAddrss = wmsBase + requestTrayInTask;
+
             var result = HttpHelper.PostAsync(wmsIpAddrss, request.ToJsonString()).Result;
+
             if (result == null)
                 return new WMSTaskDTO();
 
@@ -315,7 +301,9 @@
             try
             {
                 if (command.ConveyorLineBarcode.IsNullOrEmpty()) return;
+
                 var content = await _taskService.RequestWMSTask(command.ConveyorLineBarcode, childDeviceCode);
+
                 if (content.Status)
                 {
                     var task = _taskService.QueryBarCodeConveyorLineTask(command.ConveyorLineBarcode, childDeviceCode);
@@ -332,7 +320,6 @@
                         }
 
                         ConveyorLineTaskCommand_After taskCommand = _mapper.Map<ConveyorLineTaskCommand_After>(task);
-                        //conveyorLine.SendCommand(taskCommand, childDeviceCode);
 
                         bool sendFlag = SendCommand(taskCommand, conveyorLine, childDeviceCode);
                         if (sendFlag)

--
Gitblit v1.9.3