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
8de07f58
Commit
8de07f58
authored
Apr 17, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善sku利润报表 ebay的广告费和上架费
parent
d478084a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
OrdersServices.cs
Bailun.DC.Services/OrdersServices.cs
+4
-2
No files found.
Bailun.DC.Services/OrdersServices.cs
View file @
8de07f58
...
...
@@ -3550,7 +3550,7 @@ namespace Bailun.DC.Services
s
=
" t10.source as platform,"
;
}
sql
=
$"select
{
s
}
0 gross_amount,0 net_amount,sum(t1.
{(
isUSD
?
"exchange_rate_usd"
:
"exchange_rate"
)}
*t
1.sku_amount*t1.sku_count) gross_amount_rmb from dc_base_finance_ebay_item
t1 "
;
sql
=
$"select
{
s
}
0 gross_amount,0 net_amount,sum(t1.
{(
isUSD
?
"exchange_rate_usd"
:
"exchange_rate"
)}
*t
2.sku_ratio*t1.gross_amount) gross_amount_rmb from dc_base_finance_ebay
t1 "
;
sqlparam
=
new
DynamicParameters
();
...
...
@@ -3562,7 +3562,9 @@ namespace Bailun.DC.Services
}
sql
+=
" join dc_base_sku t10 on t1.bailun_sku=t10.bailun_sku "
;
sql
+=
@"
join dc_base_ebay_sku_ratio t2 on t1.item_id=t2.item_id
join dc_base_sku t10 on t2.sku_code=t10.bailun_sku "
;
if
(
producttype
.
Count
()
>
0
)
{
...
...
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