Commit 00bfe780 by guanzhenshan

调整平台帐号余额服务

parent 2be87984
...@@ -26,7 +26,7 @@ namespace Bailun.DC.DailyPlatformAccountBalance ...@@ -26,7 +26,7 @@ namespace Bailun.DC.DailyPlatformAccountBalance
//{ //{
// var _services = new Services(); // var _services = new Services();
// _services.Init(); // _services.Init(DateTime.Parse(DateTime.Now.AddDays(-1).ToShortDateString()));
// _services.SaveDaily(); // _services.SaveDaily();
// _services.UpdateBalanceSheet(DateTime.Now.AddDays(-1)); // _services.UpdateBalanceSheet(DateTime.Now.AddDays(-1));
//} //}
......
...@@ -33,10 +33,10 @@ namespace Bailun.DC.DailyPlatformAccountBalance ...@@ -33,10 +33,10 @@ namespace Bailun.DC.DailyPlatformAccountBalance
if (now.Hour == 9 && now.Minute==01) // if (now.Hour == 9 && now.Minute==01) //
{ {
Console.WriteLine("开始启动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); Console.WriteLine("开始启动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var end = DateTime.Now;
var start = DateTime.Parse("2020-01-01");
Init(); var day = DateTime.Parse(DateTime.Now.AddDays(-1).ToShortDateString());
Init(day);
Console.WriteLine("任务运行完成 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); Console.WriteLine("任务运行完成 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
...@@ -57,9 +57,9 @@ namespace Bailun.DC.DailyPlatformAccountBalance ...@@ -57,9 +57,9 @@ namespace Bailun.DC.DailyPlatformAccountBalance
} }
} }
public void Init() public void Init(DateTime day)
{ {
var _url = url+ "?page=1&pagesize=100000"; var _url = url+ "?datadate="+day.ToString("yyyy-MM-dd");
var str = Common.HttpHelper.NetHelper.Request(_url); var str = Common.HttpHelper.NetHelper.Request(_url);
......
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