From ef1c87e84ee8a460a151301e509f5cde51089f9c Mon Sep 17 00:00:00 2001 From: SoulStar Date: Mon, 9 Sep 2024 11:14:16 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E4=BF=AE=E6=94=B9=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/Airport/AirPortBusiness.cs | 10 +--------- SlnMesnac.Quartz/Job/GetTaskInfo_Job.cs | 2 +- SlnMesnac.WPF/appsettings.json | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) 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": [