From 1ceaab54e82568a57599b61036aeccd110184e48 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期一, 06 四月 2026 09:51:53 +0800
Subject: [PATCH] 接口有效期控制与API日志异步批量写入优化

---
 项目代码/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs"
index c5ede92..a885e6a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StoragIntegrationServices/MES/Partial/PassPoint.cs"
@@ -5,6 +5,8 @@
 using WIDESEA_Core.Const;
 using WIDESEA_Core.Helper;
 using WIDESEA_DTO;
+using WIDESEA_Model.Models;
+using WIDESEA_RecordService;
 using WIDESEA_StorageBasicRepository;
 
 namespace WIDESEA_StoragIntegrationServices
@@ -45,7 +47,7 @@
                 PassPointInfo passPoint = new PassPointInfo()
                 {
                     union_key = Guid.NewGuid().ToString(),
-                    line_code = stationInfo.stationEquipMES,  //todo 闇�鏇挎崲鎴愮偣浣嶄俊鎭椂瀵瑰簲MES鐐逛綅
+                    line_code = stationInfo.stationEquipMES, 
                     message_time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"),
                     plant_code = "1052",
                     pvi = json.PVI,
@@ -53,6 +55,9 @@
                     vin = "",
                     pass_time = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
                 };
+
+                //璁板綍璇锋眰MES杩囩偣淇℃伅
+                _passPointRecordService.AddPassPointRecord(passPoint, json);
 
                 var MESrespon = HttpHelper.PostAsync(wmsIpAddress, passPoint.ToJson(), contentType, headers).Result;
 
@@ -64,7 +69,7 @@
                 }
 
                 LogFactory.GetLog("杞﹁韩杩囩偣").Info(true, $"\r\r--------------------------------------");
-                LogFactory.GetLog("杞﹁韩杩囩偣").Info(true, $"宸ヤ綅鍙�:{json.Position},RFID:{json.PVI},鍝嶅簲淇℃伅:{responseContent.ToJson}");
+                LogFactory.GetLog("杞﹁韩杩囩偣").Info(true, $"宸ヤ綅鍙�:{json.Position},RFID:{json.PVI},鍝嶅簲淇℃伅:{MESrespon}");
 
                 return content.OK();
             }

--
Gitblit v1.9.3