From 783540520bc0d07e6ec3165f8cac2cef2a655f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Wed, 4 Jun 2025 16:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/CheryRecurringJobBaseController.cs | 2 +- API/Wood.Service/Controllers/CherySupplierConDateService.cs | 3 ++- API/Wood.Service/Controllers/CherySupplierConMmrpService.cs | 2 +- API/Wood.Service/Controllers/CherySupplierConPoService.cs | 2 +- API/Wood.Service/Controllers/TaskConifgureController.cs | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/API/Wood.Service/Controllers/CheryRecurringJobBaseController.cs b/API/Wood.Service/Controllers/CheryRecurringJobBaseController.cs index cc3fccb..9e39ff9 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobBaseController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobBaseController.cs @@ -30,7 +30,7 @@ namespace TaskManager.Controllers protected string appSecret = "48edc4425647425d87f806a1ba492580"; protected readonly HttpClient _httpClient; protected readonly JobDbContext _jobDbContext; - protected string Client { set; get; } = "Wood"; + protected string Client { set; get; } = "Chery"; protected string Path { set; get; } = "/v2/get/supplierProPlaning"; protected string Url { set; get; } = "/v2/get/supplierProPlaning"; protected virtual string TaskName { set; get; } = "SupplierProPlaning"; diff --git a/API/Wood.Service/Controllers/CherySupplierConDateService.cs b/API/Wood.Service/Controllers/CherySupplierConDateService.cs index 384ec81..d55f0a4 100644 --- a/API/Wood.Service/Controllers/CherySupplierConDateService.cs +++ b/API/Wood.Service/Controllers/CherySupplierConDateService.cs @@ -24,7 +24,7 @@ namespace TaskManager.Controllers var taskId = Guid.NewGuid(); var task = new TaskSub(); task.TaskId = taskId; - task.TaskName = TaskName; + task.TaskName = "采购订单风险确认"; task.Subscriber = Client; task.TableName = "SUPPLIER_CON_DATE"; task.DataCount = entites.Count; @@ -34,6 +34,7 @@ namespace TaskManager.Controllers task.CreateTime = DateTime.Now; task.CreateUser = "admin"; task.CreationTime = DateTime.Now; + task.SyncedPageCount = 0; entites.ForEach(p => diff --git a/API/Wood.Service/Controllers/CherySupplierConMmrpService.cs b/API/Wood.Service/Controllers/CherySupplierConMmrpService.cs index 6dbd265..77d9b96 100644 --- a/API/Wood.Service/Controllers/CherySupplierConMmrpService.cs +++ b/API/Wood.Service/Controllers/CherySupplierConMmrpService.cs @@ -27,7 +27,7 @@ namespace TaskManager.Controllers var taskId = Guid.NewGuid(); var task = new TaskSub(); task.TaskId = taskId; - task.TaskName = TaskName; + task.TaskName = ""; task.Subscriber = Client; task.TableName = "SUPPLIER_CON_MMRP"; task.DataCount = entites.Count; diff --git a/API/Wood.Service/Controllers/CherySupplierConPoService.cs b/API/Wood.Service/Controllers/CherySupplierConPoService.cs index 1883c58..44754ec 100644 --- a/API/Wood.Service/Controllers/CherySupplierConPoService.cs +++ b/API/Wood.Service/Controllers/CherySupplierConPoService.cs @@ -9,7 +9,7 @@ namespace TaskManager.Controllers { public class SupplierPoService : CheryRecurringJobInputPageController { - public SupplierPoService(HttpClient httpClient, JobDbContext jobDbContext, LogController log, IRepository repository) : base(httpClient, jobDbContext, log, repository) + public SupplierPoService(HttpClient httpClient, JobDbContext jobDbContext, LogController log, IRepository repository) : base(httpClient, jobDbContext, log, repository) { } /// diff --git a/API/Wood.Service/Controllers/TaskConifgureController.cs b/API/Wood.Service/Controllers/TaskConifgureController.cs index 81ba2cf..f6e7544 100644 --- a/API/Wood.Service/Controllers/TaskConifgureController.cs +++ b/API/Wood.Service/Controllers/TaskConifgureController.cs @@ -529,7 +529,7 @@ namespace TaskManager.Controllers ); break; case "日物料需求计划风险确认": - RecurringJob.AddOrUpdate( + RecurringJob.AddOrUpdate( task.TaskName, x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), task.Corn,