From fccac00b2ffed83a2a04dd3d32246f21c841a38b Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周六, 31 8月 2024 14:49:59 +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