Commit a7948f8b by guanzhenshan

更改帐号余额服务的启动频率

parent 6f685944
......@@ -26,7 +26,8 @@ namespace Bailun.DC.DailyPlatformAccountBalance
//{
// var _services = new Services();
// _services.Init(DateTime.Parse("2020-01-01"), DateTime.Parse("2020-08-01 15:30"));
// _services.Init();
// _services.SaveDaily();
// _services.UpdateBalanceSheet(DateTime.Now.AddDays(-1));
//}
}
......
......@@ -30,7 +30,7 @@ namespace Bailun.DC.DailyPlatformAccountBalance
{
var now = DateTime.Now;
if (now.Hour < 14 && now.Minute==01) //
if (now.Hour == 9 && now.Minute==01) //
{
Console.WriteLine("开始启动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var end = DateTime.Now;
......@@ -135,7 +135,7 @@ namespace Bailun.DC.DailyPlatformAccountBalance
/// <summary>
/// 保存每日余额
/// </summary>
private void SaveDaily()
public void SaveDaily()
{
var sql = $@"insert into dc_daily_platform_account_balance (day,account,platform_name,currency,currencyrate,availableamount,availableamount_rmb,frozenmoney,frozenmoney_rmb,totalamount,totalamount_rmb,dc_createtime)
select DATE_SUB(curdate(),INTERVAL 1 DAY),account,platform_name,currency,currencyrate,availableamount,availableamount_rmb,frozenmoney,frozenmoney_rmb,totalamount,totalamount_rmb,now() from dc_base_platform_account_balance t1";
......
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