Commit f941ace3 by 泽锋 李

初始化广告费用

parent b3f6e9b5
......@@ -14,10 +14,15 @@ namespace ResetOutofstock
protected override Task ExecuteAsync(CancellationToken stoppingToken)
{
//Task.Factory.StartNew(() =>
//{
// report.ResetCashFlowData();
//});
Task.Factory.StartNew(() =>
{
Console.WriteLine("开始初始化广告费用");
var now = DateTime.Now;
report_cash_flow_dao.CalculationAdFeeEbay(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
report_cash_flow_dao.CalculationAdFeeAmazon(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
report_cash_flow_dao.CalculationPublishFeeEbay(now.AddMonths(-3), DateTime.Parse(now.AddDays(-1).ToString("yyyy-MM-dd 23:59:59")));
Console.WriteLine("结束初始化广告费用");
});
//Task.Factory.StartNew(() =>
//{
......
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