Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bltdc
DataCenter_Core2.1_20190520
Commits
c87cefe1
Commit
c87cefe1
authored
Jul 02, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新平台余额
parent
749e3034
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
18 deletions
+25
-18
Program.cs
Bailun.DC.DailyPlatformAccountBalance/Program.cs
+15
-15
Services.cs
Bailun.DC.DailyPlatformAccountBalance/Services.cs
+1
-1
Bailun.DC.sln
Bailun.DC.sln
+9
-2
No files found.
Bailun.DC.DailyPlatformAccountBalance/Program.cs
View file @
c87cefe1
...
...
@@ -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));
//}
}
}
Bailun.DC.DailyPlatformAccountBalance/Services.cs
View file @
c87cefe1
...
...
@@ -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-0
6-20
"
);
var
start
=
DateTime
.
Parse
(
"2020-0
1-01
"
);
Init
(
start
,
end
);
...
...
Bailun.DC.sln
View file @
c87cefe1
...
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment