32 lines
749 B
C#
32 lines
749 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MesWork
|
|
{
|
|
public partial class Temp { }
|
|
public partial class MesWorkForm
|
|
{
|
|
|
|
private void Task_DispatchSql()
|
|
{
|
|
while (true)
|
|
{
|
|
try
|
|
{
|
|
B_DB_Opera.Exec_DispatchSql();
|
|
LogRecord.LogRecord.Insert_Log(LogRecord.LogRecord.Type_Log.Tip, "执行一次数据库调度【Task_DispatchSql】");
|
|
}
|
|
catch (Exception err)
|
|
{
|
|
}
|
|
Thread.Sleep(ExecSql_Interval*60*60*1000);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|