莫海杰 1 Minggu lalu
induk
melakukan
e6ae504511

+ 1 - 1
SCADA_DAQ/Customer/Machines/SampleMachine_DateTimeChanged.cs

@@ -45,7 +45,7 @@ namespace SCADA_DAQ.Customer.Machines
                 //    WMSItemUpCount = WMSItemUpList.Count;
                 //}
             }
-            if (e.ChangeType == DateTimeChangeType.SecondChanged && e.TimeFlag.Hour == 4)
+            if (e.ChangeType == DateTimeChangeType.HourChanged && e.TimeFlag.Hour == 4)
             {
                 // 关闭上传报null的任务
                 //var closeTaskSql = "UPDATE App_BC_ItemTask SET State_Int = 6 WHERE ErrorMsg_Str LIKE '%System.Reflection.TargetInvocation%' AND State_Int = 0";