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
fbe2b6d5
Commit
fbe2b6d5
authored
Jun 29, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决现金流量表明细和汇总不一致的问题
parent
7510e8a0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
30 deletions
+31
-30
Program.cs
Bailun.DC.DailyPayAndIncoming/Program.cs
+21
-21
Services.cs
Bailun.DC.DailyPayAndIncoming/Services.cs
+4
-4
Program.cs
Bailun.DC.DailyPlatformAccountBalance/Program.cs
+6
-5
No files found.
Bailun.DC.DailyPayAndIncoming/Program.cs
View file @
fbe2b6d5
...
@@ -12,29 +12,29 @@ namespace Bailun.DC.DailyPayAndIncoming
...
@@ -12,29 +12,29 @@ namespace Bailun.DC.DailyPayAndIncoming
/// </summary>
/// </summary>
/// <param name="args"></param>
/// <param name="args"></param>
/// <returns></returns>
/// <returns></returns>
//static async Task Main(string[] args)
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
)
{
{
var
_services
=
new
Services
();
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
var
start
=
DateTime
.
Parse
(
"2020-06-01"
);
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
{
{
Console
.
WriteLine
(
start
);
services
.
AddHostedService
<
Services
>();
_services
.
Init
(
start
,
start
.
AddDays
(
1
));
});
_services
.
SaveMoneyFlowCount
(
start
,
start
.
AddDays
(
1
));
start
=
start
.
AddDays
(
1
);
await
builder
.
RunConsoleAsync
();
}
}
}
//static void Main(string[] args)
//{
// var _services = new Services();
// var start = DateTime.Parse("2020-06-01");
// while (start.AddDays(1) < DateTime.Now)
// {
// Console.WriteLine(start);
// _services.Init(start, start.AddDays(1));
// _services.SaveMoneyFlowCount(start, start.AddDays(1));
// start = start.AddDays(1);
// }
//}
}
}
}
}
Bailun.DC.DailyPayAndIncoming/Services.cs
View file @
fbe2b6d5
...
@@ -83,7 +83,7 @@ namespace Bailun.DC.DailyPayAndIncoming
...
@@ -83,7 +83,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//管理成品
//管理成品
var
list
=
ListFinanceManageCost
(
start
,
start
,
""
,
""
,
""
,
null
);
//ListOtherCost(url);
var
list
=
ListFinanceManageCost
(
start
,
start
,
""
,
""
,
""
,
null
);
//ListOtherCost(url);
//物流费支出
//物流费支出
var
listlg
=
ListLogisticFee
(
start
,
start
);
//ListLogisticFee(lgurl);
var
listlg
=
ListLogisticFee
(
lgurl
);
//ListLogisticFee(start, start); //
decimal
costTotal
=
0
;
decimal
costTotal
=
0
;
...
@@ -99,7 +99,7 @@ namespace Bailun.DC.DailyPayAndIncoming
...
@@ -99,7 +99,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//支出 物流费支出
//支出 物流费支出
if
(
listlg
!=
null
&&
listlg
.
Count
()
>
0
)
if
(
listlg
!=
null
&&
listlg
.
Count
()
>
0
)
{
{
costTotal
+=
listlg
.
Sum
(
a
=>
a
.
amount
_r
mb
);
costTotal
+=
listlg
.
Sum
(
a
=>
a
.
amount
R
mb
);
}
}
...
@@ -156,7 +156,7 @@ namespace Bailun.DC.DailyPayAndIncoming
...
@@ -156,7 +156,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//管理成品
//管理成品
var
list
=
ListFinanceManageCost
(
start
,
start
,
""
,
""
,
""
,
null
);
//ListOtherCost(url);
var
list
=
ListFinanceManageCost
(
start
,
start
,
""
,
""
,
""
,
null
);
//ListOtherCost(url);
//物流费支出
//物流费支出
var
listlg
=
ListLogisticFee
(
start
,
start
);
//ListLogisticFee(lgurl);
var
listlg
=
ListLogisticFee
(
lgurl
);
//ListLogisticFee(start, start); //
decimal
costTotal
=
0
;
decimal
costTotal
=
0
;
costTotal
=
listInterest
.
Count
>
0
?
listInterest
.
Sum
(
a
=>
a
.
RepayInterestRMB
)
:
0
;
costTotal
=
listInterest
.
Count
>
0
?
listInterest
.
Sum
(
a
=>
a
.
RepayInterestRMB
)
:
0
;
...
@@ -171,7 +171,7 @@ namespace Bailun.DC.DailyPayAndIncoming
...
@@ -171,7 +171,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//支出 物流费支出
//支出 物流费支出
if
(
listlg
!=
null
&&
listlg
.
Count
()
>
0
)
if
(
listlg
!=
null
&&
listlg
.
Count
()
>
0
)
{
{
costTotal
+=
listlg
.
Sum
(
a
=>
a
.
amount
_r
mb
);
costTotal
+=
listlg
.
Sum
(
a
=>
a
.
amount
R
mb
);
}
}
//采购下单
//采购下单
...
...
Bailun.DC.DailyPlatformAccountBalance/Program.cs
View file @
fbe2b6d5
...
@@ -22,11 +22,12 @@ namespace Bailun.DC.DailyPlatformAccountBalance
...
@@ -22,11 +22,12 @@ namespace Bailun.DC.DailyPlatformAccountBalance
await
builder
.
RunConsoleAsync
();
await
builder
.
RunConsoleAsync
();
}
}
//static void Main(string[] args)
//
static void Main(string[] args)
//{
//
{
// var _services = new Services();
//
var _services = new Services();
// _services.Init(DateTime.Parse("2020-01-01"), DateTime.Parse("2020-06-24 15:30"));
// //_services.Init(DateTime.Parse("2020-01-01"), DateTime.Parse("2020-06-29 15:30"));
//}
// //_services.UpdateBalanceSheet(DateTime.Now.AddDays(-1))
//; }
}
}
}
}
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