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
c77c4485
Commit
c77c4485
authored
Jul 04, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化每日发生额服务
parent
9f95dacb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
25 deletions
+26
-25
Program.cs
Bailun.DC.HappenAmount/Program.cs
+20
-19
Services.cs
Bailun.DC.HappenAmount/Services.cs
+6
-6
No files found.
Bailun.DC.HappenAmount/Program.cs
View file @
c77c4485
...
@@ -9,30 +9,31 @@ namespace Bailun.DC.HappenAmount
...
@@ -9,30 +9,31 @@ namespace Bailun.DC.HappenAmount
{
{
class
Program
class
Program
{
{
//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
start
=
DateTime
.
Parse
(
"2020-05-19"
);
Console
.
WriteLine
(
"启动服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
);
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
{
new
Services
().
Init
(
start
,
start
.
AddDays
(
1
));
services
.
AddHostedService
<
Services
>();
//new Bailun.DC.Services.FinanceReportServices().AddLogisticsWaitPay(start, 0);
});
start
=
start
.
AddDays
(
1
);
await
builder
.
RunConsoleAsync
();
}
}
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
UpdateLogisticsWaitPay
(
start
,
0
,
"admin"
,
null
);
//static void Main(string[] args)
//{
// var start = DateTime.Parse("2020-06-01");
// while (start.AddDays(1) < DateTime.Now)
// {
// Console.WriteLine(start);
// new Services().Init(start, start.AddDays(1));
// //new Bailun.DC.Services.FinanceReportServices().AddLogisticsWaitPay(start, 0);
// start = start.AddDays(1);
}
// }
// //new Bailun.DC.Services.FinanceReportServices().UpdateLogisticsWaitPay(start, 0, "admin", null);
//}
}
}
}
}
Bailun.DC.HappenAmount/Services.cs
View file @
c77c4485
...
@@ -112,7 +112,7 @@ namespace Bailun.DC.HappenAmount
...
@@ -112,7 +112,7 @@ namespace Bailun.DC.HappenAmount
var
listInterest
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
ListInterestExpense
(
cwurl
);
var
listInterest
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
ListInterestExpense
(
cwurl
);
//管理成本
//管理成本
var
list
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
ListOtherCost
(
url
);
var
list
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
List
FinanceManageCost
(
start
,
start
,
""
,
""
,
""
,
null
);
//new Bailun.DC.Services.FinanceReportServices().List
OtherCost(url);
//物流费支出
//物流费支出
//var listlg = ListLogisticFee(lgurl);
//var listlg = ListLogisticFee(lgurl);
...
@@ -120,17 +120,17 @@ namespace Bailun.DC.HappenAmount
...
@@ -120,17 +120,17 @@ namespace Bailun.DC.HappenAmount
var
listFeeType
=
new
List
<
string
>
{
"推广费"
,
"税费"
,
"平台费用"
,
"服务费"
,
"其他"
};
var
listFeeType
=
new
List
<
string
>
{
"推广费"
,
"税费"
,
"平台费用"
,
"服务费"
,
"其他"
};
list
=
list
.
Where
(
a
=>
a
.
company
Name
.
Contains
(
"广州歌戈儿生活科技有限公司"
)
||
a
.
companyValue
==
5
||
a
.
companyValue
==
1
||
a
.
companyValue
==
3
||
a
.
companyValue
==
8
||
a
.
companyV
alue
==
2
).
ToList
();
list
=
list
.
Where
(
a
=>
a
.
company
_name
.
Contains
(
"广州歌戈儿生活科技有限公司"
)
||
a
.
company_value
==
5
||
a
.
company_value
==
1
||
a
.
company_value
==
3
||
a
.
company_value
==
8
||
a
.
company_v
alue
==
2
).
ToList
();
if
(
list
.
Count
>
0
)
if
(
list
.
Count
>
0
)
{
{
m
.
ac_amount_pay
+=
list
.
Sum
(
a
=>
a
.
amount
R
mb
);
m
.
ac_amount_pay
+=
list
.
Sum
(
a
=>
a
.
amount
_r
mb
);
m
.
ac_amount_happen
+=
list
.
Sum
(
a
=>
a
.
amount
R
mb
);
m
.
ac_amount_happen
+=
list
.
Sum
(
a
=>
a
.
amount
_r
mb
);
var
objtemp
=
list
.
Where
(
a
=>
a
.
company
Value
==
5
||
a
.
companyValue
==
2
).
Where
(
b
=>
listFeeType
.
Contains
(
b
.
feeSuperT
ype
));
var
objtemp
=
list
.
Where
(
a
=>
a
.
company
_value
==
5
||
a
.
company_value
==
2
).
Where
(
b
=>
listFeeType
.
Contains
(
b
.
fee_super_t
ype
));
if
(
objtemp
.
Count
()
>
0
)
if
(
objtemp
.
Count
()
>
0
)
{
{
m
.
ac_amount_sales
=
objtemp
.
Sum
(
a
=>
a
.
amount
R
mb
);
m
.
ac_amount_sales
=
objtemp
.
Sum
(
a
=>
a
.
amount
_r
mb
);
}
}
}
}
...
...
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