From a0d2f70a2578ad8160bf4c9b983bf6b40c0f4f77 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 26 8月 2024 13:32:22 +0800
Subject: [PATCH] 2

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/DataCaptureHandlerV2/Special/DataCaptureHandler_OP7009.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 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..f9557ad 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();
                             }

--
Gitblit v1.9.3