diff --git a/SlnMesnac.Business/Airport/AirPortBusiness.cs b/SlnMesnac.Business/Airport/AirPortBusiness.cs index 6983684..a11d4ef 100644 --- a/SlnMesnac.Business/Airport/AirPortBusiness.cs +++ b/SlnMesnac.Business/Airport/AirPortBusiness.cs @@ -20,15 +20,7 @@ namespace SlnMesnac.Business.Airport protected async override Task ExecuteAsync(CancellationToken stoppingToken) { - _airportTaskService.CreateDataBase(); - while (!stoppingToken.IsCancellationRequested) - { - //执行任务 - Console.WriteLine($"{DateTime.Now}"); - - //周期性任务,于上次任务执行完成后,等待5秒,执行下一次任务 - await Task.Delay(500); - } + return; } } diff --git a/SlnMesnac.Quartz/Job/GetTaskInfo_Job.cs b/SlnMesnac.Quartz/Job/GetTaskInfo_Job.cs index e06050c..7f3752b 100644 --- a/SlnMesnac.Quartz/Job/GetTaskInfo_Job.cs +++ b/SlnMesnac.Quartz/Job/GetTaskInfo_Job.cs @@ -13,7 +13,7 @@ namespace SlnMesnac.Quartz.Job { private readonly ILogger _logger; private IAirportTaskService _service; - private BaseTaskInfoBusiness _taskInfoBusiness; + private BaseTaskInfoBusiness _taskInfoBusiness; public GetTaskInfo_Job(ILogger logger, IAirportTaskService service) { _logger = logger; diff --git a/SlnMesnac.WPF/appsettings.json b/SlnMesnac.WPF/appsettings.json index 34790db..a9ef935 100644 --- a/SlnMesnac.WPF/appsettings.json +++ b/SlnMesnac.WPF/appsettings.json @@ -23,7 +23,7 @@ { "configId": "AGV", "dbType": 2, - "connStr": "Data Source=F:\\Mesnac\\2023部门项目\\机场AGV调度\\HightWay_AirPot_WCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\data\\Airport_db.sqlite;" + "connStr": "Data Source=D:\\WorkCode\\AirPortWCS\\SlnMesnac.WPF\\bin\\Debug\\net6.0-windows\\data\\Airport_db.sqlite" } ], "PlcConfig": [