From 09a12e1094e90fe83c5578de64b56e9237c60507 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 05 9月 2024 14:13:33 +0800
Subject: [PATCH] 代码回归

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/Special/DataCaptureHandler_OP7009.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/Special/DataCaptureHandler_OP7009.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/Special/DataCaptureHandler_OP7009.cs
index 61c956d..e0d6bd9 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/Special/DataCaptureHandler_OP7009.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/Special/DataCaptureHandler_OP7009.cs
@@ -88,11 +88,12 @@
 
                             //鑾峰彇OP70鏈粨鏉熺殑宸ヤ欢鍒楄〃
                             var ooDateTime = Convert.ToDateTime("0001-01-01");
+                            var findTime = DateTime.Now.AddHours(-12);
                             List<WorkPieceProcess> noFinishWorkPieceProcessList = null;
                             using (DbModel db = new DbModel())
                             {
                                 var dateTime = DateTime.Now;
-                                noFinishWorkPieceProcessList = db.WorkPieceProcess.Where(x => x.CreatedTime >= DateTime.Now.AddHours(-12)
+                                noFinishWorkPieceProcessList = db.WorkPieceProcess.Where(x => x.CreatedTime >= findTime
                                   && x.WorkingProcedureCurrent == WorkingProcedure
                                   && x.EndTime == ooDateTime).ToList();
                             }
@@ -109,8 +110,9 @@
                             wplog.EquipmentID = _dataCaptureConfig.EquipmentID;
                             wplog.Remarks = WorkingProcedure;
                             wplog.MonitoringPoint = DataCapturePointCode;
+                            //wplog.CreatedUserName = DataCapturePointCode;
+                            SystemBussinessHelper.SetWorkPieceLogMiddleForCreatedUserName(ref wplog, DataCapturePointCode, DataCapturePointCname);
                             wplog.CreatedTime = DateTimeHelper.GetDateTime();
-                            wplog.CreatedUserName = DataCapturePointCode;
                             wplog.UpdatedTime = DateTimeHelper.GetDateTime();
                             wplog.UpdatedUserName = Environment.MachineName + "鑷姩" + Thread.CurrentThread.ManagedThreadId.ToString();
                             wplog.OnlineTime = DateTimeHelper.GetDateTime();

--
Gitblit v1.9.3