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
f23c851b
Commit
f23c851b
authored
Aug 22, 2019
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
亚马逊广告导出增加asin字段
parent
567cf87a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
OrdersServices.cs
Bailun.DC.Services/OrdersServices.cs
+1
-1
OrdersController.cs
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
+3
-2
No files found.
Bailun.DC.Services/OrdersServices.cs
View file @
f23c851b
...
...
@@ -4433,7 +4433,7 @@ namespace Bailun.DC.Services
public
List
<
dc_base_finance_amazon_ad_product
>
ListAmazonADSku
(
string
account
,
DateTime
?
start
,
DateTime
?
end
,
int
?
companyid
)
{
var
sqlparam
=
new
DynamicParameters
();
var
sql
=
"select t2.account_name,t1.sku,t1.currency,cost,(cost*exchange_rate) cost_rmb,report_date from dc_base_finance_amazon_ad_product t1 join dc_base_company_account t2 on t1.account_id=t2.account_id "
;
var
sql
=
"select t2.account_name,t1.sku,t1.currency,cost,(cost*exchange_rate) cost_rmb,report_date
,asin
from dc_base_finance_amazon_ad_product t1 join dc_base_company_account t2 on t1.account_id=t2.account_id "
;
if
(!
string
.
IsNullOrEmpty
(
account
))
{
...
...
Bailun.DC.Web/Areas/Reports/Controllers/OrdersController.cs
View file @
f23c851b
...
...
@@ -2208,6 +2208,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
var
obj
=
_service
.
ListAmazonADSku
(
account
,
start
,
end
,
companyid
);
var
list
=
obj
.
Select
(
a
=>
new
{
a
.
asin
,
a
.
account_name
,
a
.
sku
,
cost
=
a
.
cost
.
ToString
(
"N2"
),
...
...
@@ -2217,7 +2218,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
});
var
colNames
=
new
List
<
string
>
{
"帐号"
,
"SKU"
,
"费用"
,
"币种"
,
"费用RMB"
,
"报告日期"
"ASIN"
,
"报告日期"
};
var
listVal
=
new
List
<
string
>();
...
...
@@ -2225,7 +2226,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
{
listVal
.
Add
(
item
.
account_name
+
"|"
+
item
.
sku
+
"|"
+
item
.
cost
+
"|"
+
item
.
currency
+
"|"
+
item
.
cost_rmb
+
"|"
+
item
.
report_date
item
.
asin
+
"|"
+
item
.
report_date
);
}
...
...
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