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
bd9f8df0
Commit
bd9f8df0
authored
Oct 09, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wish 回货修改
parent
f310afe6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
report.cs
AutoTurnOver.DB/report.cs
+9
-7
ReportServices.cs
AutoTurnOver.Services/ReportServices.cs
+1
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
bd9f8df0
...
@@ -1002,6 +1002,12 @@ end
...
@@ -1002,6 +1002,12 @@ end
/// </summary>
/// </summary>
public
static
List
<
dc_return_goods_push
>
ReturnGoodsPush
(
string
platform
)
public
static
List
<
dc_return_goods_push
>
ReturnGoodsPush
(
string
platform
)
{
{
List
<
string
>
rule1
=
new
List
<
string
>
{
"GBYKD"
,
"JZHYBLGC"
,
"MDBLWYT"
,
"MXBLWYT"
,
"BLUSGDC"
,
"GBBMHBL"
,
"GB4PXBL"
,
"DEBLDG"
,
"USGCBL"
,
"USHWBL"
,
"US4PXBL"
,
"AUWYTBL"
,
"AU4PXBL"
,
"GBWYTUK"
,
"GBLQST"
};
if
(
platform
==
"wish"
)
{
rule1
=
new
List
<
string
>
{
"USGCBL"
,
"BLUSGDC"
,
"US4PXBL"
,
"GB4PXBL"
};
}
var
conn
=
_connection
;
var
conn
=
_connection
;
var
shortage_list
=
new
List
<
dc_return_goods_push
>();
var
shortage_list
=
new
List
<
dc_return_goods_push
>();
// 回货速改推送
// 回货速改推送
...
@@ -1036,9 +1042,7 @@ left join (
...
@@ -1036,9 +1042,7 @@ left join (
left join (
left join (
select t1.bailun_sku,t2.area_id,sum(t1.usable_stock) as 'usable_stock' from dc_base_stock as t1
select t1.bailun_sku,t2.area_id,sum(t1.usable_stock) as 'usable_stock' from dc_base_stock as t1
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
where t1.warehouse_code in (
where t1.warehouse_code in @rule1
'GBYKD', 'JZHYBLGC', 'MDBLWYT', 'MXBLWYT', 'BLUSGDC', 'GBBMHBL', 'GB4PXBL', 'DEBLDG', 'USGCBL', 'USHWBL', 'US4PXBL', 'AUWYTBL', 'AU4PXBL', 'GBWYTUK', 'GBLQST'
)
-- and t1.bailun_sku_warehouse_code not in ( select bailun_sku_warehouse_code from dc_auto_shortage_push_ignore )
-- and t1.bailun_sku_warehouse_code not in ( select bailun_sku_warehouse_code from dc_auto_shortage_push_ignore )
GROUP BY t1.bailun_sku,t2.area_id
GROUP BY t1.bailun_sku,t2.area_id
) as tnc1 on t1.bailun_sku = tnc1.bailun_sku and t_db.area_id = tnc1.area_id
) as tnc1 on t1.bailun_sku = tnc1.bailun_sku and t_db.area_id = tnc1.area_id
...
@@ -1046,9 +1050,7 @@ left join (
...
@@ -1046,9 +1050,7 @@ left join (
select t1.bailun_sku,t2.area_id,sum(t1.quantity_unshipped) as 'quantity_unshipped' from dc_mid_transit as t1
select t1.bailun_sku,t2.area_id,sum(t1.quantity_unshipped) as 'quantity_unshipped' from dc_mid_transit as t1
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
left join dc_base_stock as t3 on t1.warehouse_code = t3.warehouse_code and t1.bailun_sku = t3.bailun_sku
left join dc_base_stock as t3 on t1.warehouse_code = t3.warehouse_code and t1.bailun_sku = t3.bailun_sku
where t1.quantity_unshipped>0 and t1.warehouse_code in (
where t1.quantity_unshipped>0 and t1.warehouse_code in @rule1
'GBYKD', 'JZHYBLGC', 'MDBLWYT', 'MXBLWYT', 'BLUSGDC', 'GBBMHBL', 'GB4PXBL', 'DEBLDG', 'USGCBL', 'USHWBL', 'US4PXBL', 'AUWYTBL', 'AU4PXBL', 'GBWYTUK', 'GBLQST'
)
-- and t3.bailun_sku_warehouse_code not in ( select bailun_sku_warehouse_code from dc_auto_shortage_push_ignore )
-- and t3.bailun_sku_warehouse_code not in ( select bailun_sku_warehouse_code from dc_auto_shortage_push_ignore )
GROUP BY t1.bailun_sku,t2.area_id
GROUP BY t1.bailun_sku,t2.area_id
) as tnc2 on t1.bailun_sku = tnc2.bailun_sku and t_db.area_id = tnc2.area_id
) as tnc2 on t1.bailun_sku = tnc2.bailun_sku and t_db.area_id = tnc2.area_id
...
@@ -1065,7 +1067,7 @@ end
...
@@ -1065,7 +1067,7 @@ end
)
)
"
;
"
;
shortage_list
.
AddRange
(
conn
.
Query
<
dc_return_goods_push
>(
sql
,
new
{
platform
=
platform
},
commandTimeout
:
0
));
shortage_list
.
AddRange
(
conn
.
Query
<
dc_return_goods_push
>(
sql
,
new
{
platform
=
platform
,
rule1
=
rule1
},
commandTimeout
:
0
));
return
shortage_list
;
return
shortage_list
;
...
...
AutoTurnOver.Services/ReportServices.cs
View file @
bd9f8df0
...
@@ -621,7 +621,7 @@ namespace AutoTurnOver.Services
...
@@ -621,7 +621,7 @@ namespace AutoTurnOver.Services
}
}
public
void
PlatformReturnGoodsPush
(
string
platform
)
public
void
PlatformReturnGoodsPush
(
string
platform
)
{
{
var
datas
=
report
.
ReturnGoodsPush
(
platform
);
var
datas
=
report
.
ReturnGoodsPush
(
platform
);
// 先走一遍过滤条件,把数据过滤一遍
// 先走一遍过滤条件,把数据过滤一遍
var
filter_datas
=
ReturnGoodsPushFilter
(
datas
);
var
filter_datas
=
ReturnGoodsPushFilter
(
datas
);
...
...
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