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
00bfe780
Commit
00bfe780
authored
Jul 16, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整平台帐号余额服务
parent
2be87984
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
Program.cs
Bailun.DC.DailyPlatformAccountBalance/Program.cs
+1
-1
Services.cs
Bailun.DC.DailyPlatformAccountBalance/Services.cs
+5
-5
No files found.
Bailun.DC.DailyPlatformAccountBalance/Program.cs
View file @
00bfe780
...
...
@@ -26,7 +26,7 @@ namespace Bailun.DC.DailyPlatformAccountBalance
//{
// var _services = new Services();
// _services.Init();
// _services.Init(
DateTime.Parse(DateTime.Now.AddDays(-1).ToShortDateString())
);
// _services.SaveDaily();
// _services.UpdateBalanceSheet(DateTime.Now.AddDays(-1));
//}
...
...
Bailun.DC.DailyPlatformAccountBalance/Services.cs
View file @
00bfe780
...
...
@@ -33,10 +33,10 @@ namespace Bailun.DC.DailyPlatformAccountBalance
if
(
now
.
Hour
==
9
&&
now
.
Minute
==
01
)
//
{
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"
));
...
...
@@ -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
);
...
...
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