From 4805487c96d244d3c392cce18acb222896b9ca18 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 16 6月 2024 15:21:13 +0800
Subject: [PATCH] 优化

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/OP80QualityDataHandler.cs |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/OP80QualityDataHandler.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/OP80QualityDataHandler.cs
index 59a2b4b..d13ba9d 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/OP80QualityDataHandler.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/OP80QualityDataHandler.cs
@@ -114,7 +114,7 @@
                 }
                 catch (Exception e)
                 {
-                    Log4NetHelper.WriteErrorLog(logType, $" OP80璐ㄩ噺鏁版嵁閲囬泦寮傚父锛歿e.Message} {e.StackTrace}");
+                    Log4NetHelper.WriteErrorLog(logType, $" OP80璐ㄩ噺鏁版嵁閲囬泦寮傚父锛歿e.Message} {e.StackTrace}", e);
                 }
             }
         }
@@ -137,7 +137,7 @@
                     }
                     //files = files.OrderByDescending(o => o.LastWriteTime).ToList();
                     files = files.OrderBy(o => o.LastWriteTime).ToList();//鏃堕棿鍗囧簭
-                    Log4NetHelper.WriteErrorLog(logType, $"OP80涓嬬嚎瀹屾垚璇诲彇鍒版枃浠秢files.Count()}涓伐浠秢pieceProcess.WorkPieceID} ");
+                    Log4NetHelper.WriteInfoLog(logType, $"OP80涓嬬嚎瀹屾垚璇诲彇鍒版枃浠秢files.Count()}涓伐浠秢pieceProcess.WorkPieceID} ");
 
                     bool isGetQcSuccess = false;
 
@@ -146,11 +146,11 @@
                     {
                         var file = findFiles.First();
 
-                        Log4NetHelper.WriteErrorLog(logType, $"OP80涓嬬嚎瀹屾垚璇诲彇鍒版枃浠秢file.Name}锛屾槸鎸囧畾鐨勫伐浠秢pieceProcess.WorkPieceID}");
+                        Log4NetHelper.WriteInfoLog(logType, $"OP80涓嬬嚎瀹屾垚璇诲彇鍒版枃浠秢file.Name}锛屾槸鎸囧畾鐨勫伐浠秢pieceProcess.WorkPieceID}");
 
                         WorkPieceLogMiddle wplog = new WorkPieceLogMiddle();
                         wplog.WorkPieceID = pieceProcess.WorkPieceID;
-                        wplog.WorkingProcedure = _DataCapturePointCode;
+                        wplog.WorkingProcedure = query_WorkingProcedureCurrent;
                         wplog.Id = Yitter.IdGenerator.YitIdHelper.NextId();
                         wplog.EquipmentID = _dataCaptureConfig.EquipmentID; ;
                         wplog.Remarks = wplog.WorkingProcedure;
@@ -322,6 +322,7 @@
                         //淇敼QualityDataInfo琛� //閲嶅鏀跺埌璐ㄩ噺淇℃伅锛屼細瑕嗙洊涔嬪墠鐨�
                         EntityPropHelper<WorkPieceLogMiddle, QualityDataInfo>.CopyProp(wplog, qualityData, WorkPieceInfoManager.GetQualityDataInfoUpdate(wplog.WorkingProcedure, wplog.MonitoringPoint));//鎸囧畾淇敼瀛楁
 
+                        qualityData.EquipmentID = "EOP80";
                         qualityData.QualityStateUpdateUser = info.UpdatedUserName;
                         qualityData.QualityReceiveTime = info.UpdatedTime.Value.LocalDateTime;
                         qualityData.QualityStateUpdateMode = info.QualityStateUpdateMode;

--
Gitblit v1.9.3