Commit ce75ce53 by guanzhenshan

每日销售额差异表的统计时间更改,改为凌晨5点开始跑

parent bc8cf544
......@@ -20,7 +20,7 @@ namespace Bailun.DC.SkuDailyPurchaseAndSales
//static void Main(string[] args)
//{
// var start = DateTime.Parse("2019-10-20");
// var start = DateTime.Parse("2019-10-21");
// while (start.AddDays(1) < DateTime.Now)
// {
// Console.WriteLine(start.ToString("yyyy-MM-dd"));
......
......@@ -26,10 +26,10 @@ namespace Bailun.DC.SkuDailyPurchaseAndSales
try
{
var now = DateTime.Now;
if (now.Hour == 23 && now.Minute == 59)
if (now.Hour == 5 && now.Minute == 16)
{
Console.WriteLine("开始计算服务 " + now.ToString("yyyy-MM-dd HH:mm:ss"));
Init(DateTime.Parse(now.ToShortDateString()),now);
Init(DateTime.Parse(now.AddDays(-1).ToShortDateString()),DateTime.Parse(now.ToShortDateString()));
Console.WriteLine("计算结束 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
}
}
......
......@@ -1153,7 +1153,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
"SubscriptionSMBasicPro",
"SubscriptioneBayStores",
"SubtitleFee",
"SubtitleFeeCredit"
"SubtitleFeeCredit",
"CrediteBayStores"
};
......@@ -1362,7 +1363,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
"SubscriptionSMBasicPro",
"SubscriptioneBayStores",
"SubtitleFee",
"SubtitleFeeCredit"
"SubtitleFeeCredit",
"CrediteBayStores"
};
......
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