Commit c87cefe1 by guanzhenshan

更新平台余额

parent 749e3034
......@@ -11,23 +11,23 @@ namespace Bailun.DC.DailyPlatformAccountBalance
/// </summary>
class Program
{
//static async Task Main(string[] args)
//{
// Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
// var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
// {
// services.AddHostedService<Services>();
// });
// await builder.RunConsoleAsync();
//}
static void Main(string[] args)
static async Task Main(string[] args)
{
var _services = new Services();
Console.WriteLine("启动服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
{
services.AddHostedService<Services>();
});
_services.Init(DateTime.Parse("2020-01-01"), DateTime.Parse("2020-08-01 15:30"));
_services.UpdateBalanceSheet(DateTime.Now.AddDays(-1));
await builder.RunConsoleAsync();
}
//static void Main(string[] args)
//{
// var _services = new Services();
// _services.Init(DateTime.Parse("2020-01-01"), DateTime.Parse("2020-08-01 15:30"));
// _services.UpdateBalanceSheet(DateTime.Now.AddDays(-1));
//}
}
}
......@@ -34,7 +34,7 @@ namespace Bailun.DC.DailyPlatformAccountBalance
{
Console.WriteLine("开始启动 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
var end = DateTime.Now;
var start = DateTime.Parse("2020-06-20");
var start = DateTime.Parse("2020-01-01");
Init(start,end);
......
......@@ -47,9 +47,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bailun.DC.MonthSalePutin",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bailun.DC.DailyLogisticSupplierTransaction", "Bailun.DC.DailyLogisticSupplierTransaction\Bailun.DC.DailyLogisticSupplierTransaction.csproj", "{5163B1E9-43F8-4E5A-B4A9-546F5375515E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bailun.DC.DailySelfProducePurchaseDeliver", "Bailun.DC.DailySelfProduceDeliver\Bailun.DC.DailySelfProducePurchaseDeliver.csproj", "{A8E6DCD5-9F45-41D3-9297-FB104772B11C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bailun.DC.DailySelfProducePurchaseDeliver", "Bailun.DC.DailySelfProduceDeliver\Bailun.DC.DailySelfProducePurchaseDeliver.csproj", "{A8E6DCD5-9F45-41D3-9297-FB104772B11C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bailun.DC.DailyPlatformAccountBalance", "Bailun.DC.DailyPlatformAccountBalance\Bailun.DC.DailyPlatformAccountBalance.csproj", "{7EA89BAB-0D45-4959-8AB2-9F08FDB3D7F9}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Bailun.DC.DailyPlatformAccountBalance", "Bailun.DC.DailyPlatformAccountBalance\Bailun.DC.DailyPlatformAccountBalance.csproj", "{7EA89BAB-0D45-4959-8AB2-9F08FDB3D7F9}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bailun.DC.AllotOrderDetail", "..\Bailun.DC.AllotOrderDetail\Bailun.DC.AllotOrderDetail.csproj", "{979DA036-4955-4747-9806-F3ECC4A260E5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......@@ -149,6 +151,10 @@ Global
{7EA89BAB-0D45-4959-8AB2-9F08FDB3D7F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7EA89BAB-0D45-4959-8AB2-9F08FDB3D7F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7EA89BAB-0D45-4959-8AB2-9F08FDB3D7F9}.Release|Any CPU.Build.0 = Release|Any CPU
{979DA036-4955-4747-9806-F3ECC4A260E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{979DA036-4955-4747-9806-F3ECC4A260E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{979DA036-4955-4747-9806-F3ECC4A260E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{979DA036-4955-4747-9806-F3ECC4A260E5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
......@@ -171,6 +177,7 @@ Global
{5163B1E9-43F8-4E5A-B4A9-546F5375515E} = {AE2CE86A-8538-4142-920F-684DCF47C064}
{A8E6DCD5-9F45-41D3-9297-FB104772B11C} = {AE2CE86A-8538-4142-920F-684DCF47C064}
{7EA89BAB-0D45-4959-8AB2-9F08FDB3D7F9} = {AE2CE86A-8538-4142-920F-684DCF47C064}
{979DA036-4955-4747-9806-F3ECC4A260E5} = {AE2CE86A-8538-4142-920F-684DCF47C064}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6E53AF28-A282-4FB0-A769-EAEA9769C02A}
......
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