From 764c8fef733cdca5c53e60eda45c30cc03045cbf Mon Sep 17 00:00:00 2001
From: Ben Lin <maobin001@msn.com>
Date: 星期一, 24 三月 2025 15:30:47 +0800
Subject: [PATCH] 实现 (U9) 来料打印上架事务功能

---
 Tiger.Business.MES/Task/Jobs.U9C_ME_GetCustomer.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Tiger.Business.MES/Task/Jobs.U9C_ME_GetCustomer.cs b/Tiger.Business.MES/Task/Jobs.U9C_ME_GetCustomer.cs
index f9c9a72..301a957 100644
--- a/Tiger.Business.MES/Task/Jobs.U9C_ME_GetCustomer.cs
+++ b/Tiger.Business.MES/Task/Jobs.U9C_ME_GetCustomer.cs
@@ -40,7 +40,7 @@
                 string msg = "";
                 string status = "Successed";
                 GetJob(typeof(U9C_MES_GetCustomer).Name);
-                TskJobInput tskJobInput = CheckIFCanGo();
+                TskJobInput tskJobInput = CheckHowToDo();
                 if (tskJobInput.result)
                 {
                     var result = DI.Resolve<IU9C_MES>().GetCustomer(tskJobInput.input);
@@ -54,7 +54,7 @@
                     {
                         msg = $"浠嶶9C鑾峰彇瀹㈡埛淇℃伅鎴愬姛:{result.Message}";
                         //鍥哄畾鍐欐硶
-                        Trig.LastRunTime = tskJobInput.input.endTime.ToDateTime();
+                        Trig.LastRunTime = Args.ByInterval == "Y" ? tskJobInput.input.endTime.ToDateTime().AddHours(Args.Interval) : tskJobInput.input.endTime.ToDateTime();
                         Trig.NextRunTime = Schedule.NextRun;
                     }
                 }

--
Gitblit v1.9.3