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
dd0e53eb
Commit
dd0e53eb
authored
Feb 07, 2021
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台利润统计报表增加Etsy平台的记录显示
parent
1d476c27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
OrdersController.cs
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
+34
-2
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
View file @
dd0e53eb
...
...
@@ -2006,7 +2006,37 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
item
.
platform_type
=
Enum
.
GetName
(
typeof
(
SkuSource
),
int
.
Parse
(
item
.
platform_type
));
}
}
//判断数据是否包含Etsy平台
var
hasEtsy
=
result
.
Where
(
a
=>
a
.
platform_type
==
"Etsy"
).
FirstOrDefault
();
if
(
hasEtsy
==
null
)
{
var
m
=
new
Models
.
Orders
.
dc_base_oms_sku
{
platform_type
=
"Etsy"
,
order_count
=
0
,
amount_sales
=
0
,
customerprice
=
0
,
cost_platform_fee
=
0
,
profit_total
=
0
,
profit_rate
=
0
,
amount_refund
=
0
,
amount_refund_rate
=
0
,
cost_first
=
0
,
cost_handle_bailun
=
0
,
cost_handle_platform
=
0
,
cost_tail
=
0
,
amount_prepaid
=
0
,
cost_product
=
0
,
noshippingcount
=
0
,
cost_fba_fee
=
0
,
cost_paypal_fee
=
0
,
adfee
=
0
,
putawayfee
=
0
};
result
.
Add
(
m
);
}
if
(
result
.
Count
>
0
)
{
...
...
@@ -2039,7 +2069,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
list
=
result
.
Select
(
p
=>
new
{
p
.
platform_type
,
customerprice
=
(
p
.
amount_sales
/
p
.
order_count
).
ToString
(
"N2"
)
,
customerprice
=
p
.
order_count
>
0
?(
p
.
amount_sales
/
p
.
order_count
).
ToString
(
"N2"
):
"0"
,
order_count
=
p
.
order_count
.
ToString
(
"N0"
),
cost_platform_fee
=
p
.
cost_platform_fee
>
0
?
p
.
cost_platform_fee
.
ToString
(
"N2"
)
:
"0"
,
profit_total
=
p
.
profit_total
.
ToString
(
"N2"
),
...
...
@@ -2064,6 +2094,8 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
}).
ToList
();
var
objEbay
=
list
.
Where
(
a
=>
a
.
platform_type
==
"Ebay"
).
FirstOrDefault
();
if
(
objEbay
!=
null
&&
list
.
Count
>
4
)
{
...
...
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