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
95783178
Commit
95783178
authored
Jan 02, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整月销售利润报表生成服务
parent
990b1069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
Program.cs
Bailun.DC.MonthSaleProfit/Program.cs
+4
-2
Services.cs
Bailun.DC.MonthSaleProfit/Services.cs
+5
-5
No files found.
Bailun.DC.MonthSaleProfit/Program.cs
View file @
95783178
...
...
@@ -22,8 +22,10 @@ namespace Bailun.DC.MonthSaleProfit
//{
// var _services = new Services();
// var start = DateTime.Parse("2020-11-01");
// _services.InitNew(start);
// var start = DateTime.Parse("2020-12-01");
// //_services.Init(start);
// //_services.InitNew(start);
// //_services.InitNew4K(start);
// //_services.InitNew4K(start);
//}
}
...
...
Bailun.DC.MonthSaleProfit/Services.cs
View file @
95783178
...
...
@@ -755,10 +755,10 @@ join dc_base_warehouse t3 on t1.warehouse_code=t3.warehouse_code
//付款
var
objPay
=
listFinance
.
Where
(
a
=>
a
.
cost_form
==
1
||
(
a
.
cost_form
==
3
&&
a
.
is_lend
==
2
));
m
.
incoming_operating_dsp
=
objIncoming
.
Where
(
a
=>
a
.
project_type
.
ToUpper
()
==
"DSP"
)?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_saas
=
objIncoming
.
Where
(
a
=>
a
.
project_type
.
ToUpper
()
==
"SAAS"
)?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_test
=
objIncoming
.
Where
(
a
=>
a
.
project_type
.
ToUpper
()
==
"测评"
)?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_other
=
objIncoming
.
Where
(
a
=>
a
.
project_type
==
"其他"
||
string
.
IsNullOrEmpty
(
a
.
project_type
))?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_dsp
=
objIncoming
.
Where
(
a
=>
a
.
project_type
!=
null
&&
a
.
project_type
.
ToUpper
()
==
"DSP"
)?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_saas
=
objIncoming
.
Where
(
a
=>
a
.
project_type
!=
null
&&
a
.
project_type
.
ToUpper
()
==
"SAAS"
)?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_test
=
objIncoming
.
Where
(
a
=>
a
.
project_type
!=
null
&&
a
.
project_type
.
ToUpper
()
==
"测评"
)?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
m
.
incoming_operating_other
=
objIncoming
.
Where
(
a
=>
a
.
project_type
!=
null
&&
a
.
project_type
==
"其他"
||
string
.
IsNullOrEmpty
(
a
.
project_type
))?.
Sum
(
a
=>
a
.
amount_rmb
)
??
0
;
//营业收入=SAAS套餐收入+测评收入+DSP服务收入+MH代理收入+代运营收入+粉丝系统服务收入+其他收入
...
...
@@ -828,7 +828,7 @@ join dc_base_warehouse t3 on t1.warehouse_code=t3.warehouse_code
if
(
objRate
==
null
)
{
var
result_Exchange
=
Common
.
HttpHelper
.
NetHelper
.
Request
(
_url_exchange
+
item
.
Currency
);
if
(!
string
.
IsNullOrEmpty
(
result_Exchange
))
if
(!
string
.
IsNullOrEmpty
(
result_Exchange
)
&&
result_Exchange
!=
"null"
)
{
var
jsonExchange
=
Newtonsoft
.
Json
.
JsonConvert
.
DeserializeObject
<
Models
.
response_Exchange
>(
result_Exchange
);
objRate
=
new
Tuple
<
string
,
decimal
>(
item
.
Currency
,
jsonExchange
.
rate
);
...
...
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