Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
dfe04f5d
Commit
dfe04f5d
authored
Jun 11, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增发货地筛选
parent
81ce3a98
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
report.cs
AutoTurnOver.DB/report.cs
+22
-1
bailun_sku_website_sales_dto.cs
AutoTurnOver.Models/Report/bailun_sku_website_sales_dto.cs
+2
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
dfe04f5d
...
...
@@ -1712,7 +1712,8 @@ truncate table dc_auto_stock_monitor_temp; ", commandTimeout: 0);
}
public
static
List
<
bailun_sku_website_sales_dto
>
GetSkuWebsiteSales
(
bailun_sku_website_sales_search_dto
search_data
)
{
var
sql
=
@" select t1.*,t2.label from dc_base_oms_sku_7 as t1 left join dc_auto_config_sku_label as t2 on t1.bailun_sku = t2.bailun_sku where 1=1 "
;
var
sql
=
@" select t1.*,t2.label from dc_base_oms_sku_7 as t1 left join dc_auto_config_sku_label as t2 on t1.bailun_sku = t2.bailun_sku
left join dc_base_warehouse as tdb on t1.warehouse_code = tdb.warehouse_code where 1=1 "
;
DynamicParameters
parameters
=
new
DynamicParameters
();
if
(
search_data
!=
null
)
{
...
...
@@ -1721,6 +1722,26 @@ truncate table dc_auto_stock_monitor_temp; ", commandTimeout: 0);
sql
+=
" and t1.platform_type = @platform_type "
;
parameters
.
Add
(
"platform_type"
,
search_data
.
platform_type
);
}
if
(!
string
.
IsNullOrWhiteSpace
(
search_data
.
warehousetype
))
{
if
(
search_data
.
warehousetype
==
"中国"
)
{
sql
+=
" and t2.hq_type=@warehousetype "
;
parameters
.
Add
(
"warehousetype"
,
"国内仓"
);
}
else
{
if
(
"amazon"
.
Equals
(
search_data
.
platform_type
,
StringComparison
.
OrdinalIgnoreCase
))
{
sql
+=
" and t2.hq_type in ('fba仓') "
;
}
else
{
sql
+=
" and t2.hq_type not in ('国内仓') "
;
}
}
}
}
var
oms_sku_list
=
_connection
.
Query
<
dc_base_oms_sku_label
>(
sql
,
parameters
);
...
...
AutoTurnOver.Models/Report/bailun_sku_website_sales_dto.cs
View file @
dfe04f5d
...
...
@@ -11,7 +11,8 @@ namespace AutoTurnOver.Models.Report
/// </summary>
public
bool
?
has_sum
{
get
;
set
;
}
public
string
platform_type
{
get
;
set
;
}
public
string
warehouse_type
{
get
;
set
;
}
public
string
warehousetype
{
get
;
set
;
}
}
public
class
bailun_sku_website_sales_detailed_search_dto
...
...
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