From f7f84b6277c4fca6cd20b0f989f1a47914d20ed8 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期四, 24 十月 2024 17:09:37 +0800 Subject: [PATCH] 测试 --- Tiger.Business.MES/Task/Jobs.U9C_ME_GetWo.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Tiger.Business.MES/Task/Jobs.U9C_ME_GetWo.cs b/Tiger.Business.MES/Task/Jobs.U9C_ME_GetWo.cs index 457dead..cf411c3 100644 --- a/Tiger.Business.MES/Task/Jobs.U9C_ME_GetWo.cs +++ b/Tiger.Business.MES/Task/Jobs.U9C_ME_GetWo.cs @@ -27,13 +27,13 @@ try { var _lastRunTime = Biz.SysParam["GetWo_LastRun", "Interface_LastRun"].PARAM_VALUE; - var LastRunTime = string.IsNullOrEmpty(_lastRunTime) ? DateTime.Now.AddMinutes(-30) : Convert.ToDateTime(_lastRunTime); - if ((DateTime.Now - LastRunTime).TotalMinutes > 30) + var LastRunTime = string.IsNullOrEmpty(_lastRunTime) ? DateTime.Now.AddMinutes(-10) : Convert.ToDateTime(_lastRunTime); + if ((DateTime.Now - LastRunTime).TotalMinutes > 10) { GetWoInput input = new GetWoInput { startTime = LastRunTime.ToString("yyyy-MM-dd HH:mm:ss"), - endTime = LastRunTime.AddMinutes(30).ToString("yyyy-MM-dd HH:mm:ss") + endTime = LastRunTime.AddMinutes(10).ToString("yyyy-MM-dd HH:mm:ss") }; var result = await DI.Resolve<IU9C_MES>().GetBasWo(input); if (!result.IsSuccessed) -- Gitblit v1.9.3