From 54dcfc827e8611c737ea52f27a4523f78aef8994 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周五, 23 8月 2024 11:49:41 +0800 Subject: [PATCH] 修复 --- 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