From 76a6aa91f920f4af004a1fb9fee4e7496b576382 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周日, 16 6月 2024 15:54:57 +0800
Subject: [PATCH] 2

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/OP80QualityDataHandler.cs |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 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..34ec596 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);
                 }
             }
         }
@@ -130,14 +130,14 @@
                     //OP80 闇�瑕佹壂鎻忔枃浠惰鍙栬川閲忎俊鎭�
                     //鎵弿淇敼鏃堕棿鍦ㄤ笂娆℃壂鎻忔椂闂翠箣鍓�30绉掑埌褰撳墠鏃堕棿鐨勪箣闂寸殑鏂囦欢
                     List<FileInfo> files = new List<FileInfo>();
-                    var newFiles = FileHelper.DetectNewFilesCSV(path, 300, time.AddDays(-7), time.AddDays(1));
+                    var newFiles = FileHelper.DetectNewFilesCSV(path, 300, time.AddDays(-30), time.AddDays(1));
                     foreach (var file in newFiles)
                     {
                         files.Add((FileInfo)file);
                     }
                     //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