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
71fdd3c5
Commit
71fdd3c5
authored
Dec 23, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整管理成本的统计方式
parent
b1e6c9f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
20 deletions
+20
-20
Services.cs
Bailun.DC.DailyPayAndIncoming/Services.cs
+2
-2
Program.cs
Bailun.DC.HappenAmount/Program.cs
+17
-17
Services.cs
Bailun.DC.HappenAmount/Services.cs
+1
-1
No files found.
Bailun.DC.DailyPayAndIncoming/Services.cs
View file @
71fdd3c5
...
...
@@ -76,8 +76,8 @@ namespace Bailun.DC.DailyPayAndIncoming
decimal
costTotal
=
0
;
costTotal
=
listInterest
.
Count
>
0
?
listInterest
.
Sum
(
a
=>
a
.
RepayInterestRMB
):
0
;
//管理成本 只取付款主体为广州百伦供应链科技有限公司、香港百伦科技有限公司、广州电子服装仓、阳山仓、深圳仓的数据
list
=
list
.
Where
(
a
=>
a
.
company
Value
==
1
||
a
.
companyValue
==
2
||
a
.
companyValue
==
5
||
a
.
companyValue
==
8
||
a
.
companyValue
==
7
).
ToList
();
//管理成本 只取付款主体为广州百伦供应链科技有限公司、香港百伦科技有限公司、广州电子服装仓、阳山仓、深圳仓
、广州哥戈尔生活科技有限公司、广州迪致美容科技有限公司
的数据
list
=
list
.
Where
(
a
=>
a
.
company
Name
.
Contains
(
"广州歌戈儿生活科技有限公司"
)
||
a
.
companyValue
==
5
||
a
.
companyValue
==
1
||
a
.
companyValue
==
3
||
a
.
companyValue
==
8
||
a
.
companyValue
==
2
).
ToList
();
if
(
list
.
Count
>
0
)
{
costTotal
+=
list
.
Sum
(
a
=>
a
.
amountRmb
);
...
...
Bailun.DC.HappenAmount/Program.cs
View file @
71fdd3c5
...
...
@@ -7,25 +7,25 @@ namespace Bailun.DC.HappenAmount
{
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
start
=
DateTime
.
Parse
(
"2019-11-01"
);
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
);
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
new
Services
().
Init
(
start
,
start
.
AddDays
(
1
));
start
=
start
.
AddDays
(
1
);
}
services
.
AddHostedService
<
Services
>();
});
await
builder
.
RunConsoleAsync
();
}
//static void Main(string[] args)
//{
// var start = DateTime.Parse("2019-11-01");
// while (start.AddDays(1) < DateTime.Now)
// {
// new Services().Init(start, start.AddDays(1));
// start = start.AddDays(1);
// }
//}
}
}
Bailun.DC.HappenAmount/Services.cs
View file @
71fdd3c5
...
...
@@ -98,7 +98,7 @@ namespace Bailun.DC.HappenAmount
var
listFeeType
=
new
List
<
string
>
{
"推广费"
,
"税费"
,
"平台费用"
,
"服务费"
,
"其他"
};
list
=
list
.
Where
(
a
=>
a
.
companyName
.
Contains
(
"广州歌戈儿生活科技有限公司"
)
||
a
.
companyValue
==
5
||
a
.
companyValue
==
1
||
a
.
companyValue
==
3
||
a
.
companyValue
==
8
||
a
.
companyValue
==
2
).
ToList
();
if
(
list
.
Count
>
0
)
{
...
...
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