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
8c53f240
Commit
8c53f240
authored
Aug 02, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
平台利润统计的退款数据改为从订单表取
parent
e019c3d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
8 deletions
+33
-8
OrdersController.cs
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
+33
-8
No files found.
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
View file @
8c53f240
...
@@ -1408,14 +1408,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -1408,14 +1408,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
item
.
profit_rate
=
Math
.
Round
((
item
.
profit_total
/
item
.
amount_sales
),
2
);
item
.
profit_rate
=
Math
.
Round
((
item
.
profit_total
/
item
.
amount_sales
),
2
);
}
}
item
.
amount_refund
=
0
;
//
item.amount_refund = 0;
item
.
amount_refund_rate
=
0
;
//
item.amount_refund_rate = 0;
var
objRefund
=
listRefund
.
Where
(
a
=>
a
.
platform_type
==
item
.
platform_type
).
FirstOrDefault
();
//
var objRefund = listRefund.Where(a => a.platform_type == item.platform_type).FirstOrDefault();
if
(
objRefund
!=
null
)
//
if (objRefund != null)
{
//
{
item
.
amount_refund
=
objRefund
.
amount_refund
;
//
item.amount_refund = objRefund.amount_refund;
item
.
amount_refund_rate
=
(
item
.
amount_sales
>
0
?
item
.
amount_refund
/
item
.
amount_sales
:
0
);
//
item.amount_refund_rate = (item.amount_sales>0?item.amount_refund/item.amount_sales:0);
}
//
}
//利润减去退款
//利润减去退款
item
.
profit_total
=
(
item
.
profit_total
-
item
.
amount_refund
);
item
.
profit_total
=
(
item
.
profit_total
-
item
.
amount_refund
);
...
@@ -2221,6 +2221,31 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
...
@@ -2221,6 +2221,31 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return
File
(
ms
,
"text/csv"
,
filename
+
".csv"
);
return
File
(
ms
,
"text/csv"
,
filename
+
".csv"
);
}
}
/// <summary>
/// Wish 广告费
/// </summary>
/// <returns></returns>
public
ActionResult
WishAD
()
{
return
View
();
}
/// <summary>
/// Wish广告费数据
/// </summary>
/// <param name="parameter"></param>
/// <param name="start">开始时间</param>
/// <param name="end">结束时间</param>
/// <param name="account">帐号</param>
/// <returns></returns>
[
BailunAuthentication
(
LoginMode
.
Enforce
)]
public
string
WishADJson
(
BtTableParameter
parameter
,
DateTime
?
start
,
DateTime
?
end
,
string
account
)
{
return
""
;
}
#
endregion
#
endregion
#
region
Paypal
费
#
region
Paypal
费
...
...
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