Commit 347b5dac by lizefeng

修改采购建议循环方案

parent 831ee052
...@@ -14,7 +14,7 @@ namespace AutoGeneratePurchaseAdvise ...@@ -14,7 +14,7 @@ namespace AutoGeneratePurchaseAdvise
protected override Task ExecuteAsync(CancellationToken stoppingToken) protected override Task ExecuteAsync(CancellationToken stoppingToken)
{ {
_timer = new Timer(DoWork, null, TimeSpan.Zero, TimeSpan.FromHours(1)); _timer = new Timer(DoWork, null, TimeSpan.Zero, TimeSpan.FromHours(24));
return Task.CompletedTask; return Task.CompletedTask;
} }
......
...@@ -10,9 +10,9 @@ namespace AutoGeneratePurchaseAdvise ...@@ -10,9 +10,9 @@ namespace AutoGeneratePurchaseAdvise
{ {
static async Task Main(string[] args) static async Task Main(string[] args)
{ {
Console.WriteLine("采购平均值计算任务启动..."); Console.WriteLine("采购建议计算任务启动...");
// 创建采购计划 // 创建采购计划
PurchaseAdviseServices.Generate(); //PurchaseAdviseServices.Generate();
var builder = new HostBuilder().ConfigureServices((hostContext, services) => var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{ {
......
...@@ -21,8 +21,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test", "test\test.csproj", ...@@ -21,8 +21,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test", "test\test.csproj",
EndProject EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGeneratePurchaseAdvise", "AutoGeneratePurchaseAdvise\AutoGeneratePurchaseAdvise.csproj", "{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}" Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoGeneratePurchaseAdvise", "AutoGeneratePurchaseAdvise\AutoGeneratePurchaseAdvise.csproj", "{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}"
EndProject EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker-compose.dcproj", "{23B3C567-1F02-4954-B621-26490D75F0FC}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
...@@ -61,10 +59,6 @@ Global ...@@ -61,10 +59,6 @@ Global
{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU {350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU {350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Release|Any CPU.Build.0 = Release|Any CPU {350405A0-13DF-4F20-8B3F-0AB923BE9DFF}.Release|Any CPU.Build.0 = Release|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{23B3C567-1F02-4954-B621-26490D75F0FC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment