Commit 182d7044 by lizefeng

优化自动推单

parent 06564ba1
......@@ -30,6 +30,7 @@ namespace AutoGeneratePurchaseAdvise
PurchaseAdviseServices.Generate();
Console.WriteLine($"结束采购平均值统计任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
Console.WriteLine($"开始采购平均值统计任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAdviseServices.AutoPushBuySys();
Console.WriteLine($"结束采购平均值统计任务,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
......
......@@ -208,6 +208,12 @@ namespace AutoTurnOver.Services
}
catch (Exception ex)
{
report.AddError(new dc_task_error_log {
date =DateTime.Now,
message = ex.Message,
stack_trace = ex.StackTrace,
task_name = "AutoPushBuySys"
});
Console.WriteLine(ex.Message);
}
......
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