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
7510e8a0
Commit
7510e8a0
authored
Jun 28, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加更新资产负债表平台余额方法
parent
56b55bd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
Services.cs
Bailun.DC.DailyPlatformAccountBalance/Services.cs
+20
-2
No files found.
Bailun.DC.DailyPlatformAccountBalance/Services.cs
View file @
7510e8a0
...
...
@@ -45,8 +45,13 @@ namespace Bailun.DC.DailyPlatformAccountBalance
SaveDaily
();
Console
.
WriteLine
(
"结束每日记录保存 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
//更新资产负债表平台余额字段
Console
.
WriteLine
(
"开始启动更新资产负债表平台余额字段 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
UpdateBalanceSheet
(
DateTime
.
Now
.
AddDays
(-
1
));
Console
.
WriteLine
(
"结束更新资产负债表平台余额字段 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
catch
(
Exception
ex
)
...
...
@@ -110,10 +115,23 @@ namespace Bailun.DC.DailyPlatformAccountBalance
/// 更新资产负债表余额
/// </summary>
/// <param name="day"></param>
p
rivate
void
UpdateBalanceSheet
(
DateTime
day
)
p
ublic
void
UpdateBalanceSheet
(
DateTime
day
)
{
//platformBalanceUpdate
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
cn
.
Open
();
}
var
sql
=
$"select sum(totalamount_rmb) as totalamount_rmb from dc_daily_platform_account_balance where day='
{
day
.
ToString
(
"yyyy-MM-dd"
)}
'"
;
var
amount
=
cn
.
QueryFirstOrDefault
<
decimal
>(
sql
);
UpdateLogisticsEndAmount
(
day
,
amount
,
"platformBalanceUpdate"
);
}
}
...
...
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