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
ef41465a
Commit
ef41465a
authored
Aug 06, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单缺货明细,新增发货数量
parent
88eba714
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
+10
-3
report.cs
AutoTurnOver.DB/report.cs
+3
-2
quantity_out_stock_detail_dto.cs
AutoTurnOver.Models/Report/quantity_out_stock_detail_dto.cs
+5
-0
ReportsController.cs
AutoTurnOver/Controllers/ReportsController.cs
+2
-1
No files found.
AutoTurnOver.DB/report.cs
View file @
ef41465a
...
...
@@ -193,7 +193,8 @@ t1.logistics_method_name,
(case when t6.`status`=1 then '停售' else '在售' end) as 'sku_status',
(t2.quantity_transfer+t2.quantity_purchase) as 'quantity_ontheway', -- 总在途
t8.buy_ontheway_detail,
t9.items
t9.items,
t1.bailun_sku_quantity_shipped
from dc_base_oms_sku_outofstock as t1
left join dc_mid_transit as t2 on t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code
left join dc_base_warehouse as t_db on t1.warehouse_code = t_db.warehouse_code
...
...
@@ -1081,7 +1082,7 @@ GROUP BY
alter table dc_auto_purchase_ontheway rename dc_auto_purchase_onthewayTemp;
alter table dc_auto_purchase_ontheway_temp rename dc_auto_purchase_ontheway;
alter table dc_auto_purchase_onthewayTemp rename dc_auto_purchase_ontheway_temp;
truncate table dc_auto_purchase_ontheway_temp; "
);
truncate table dc_auto_purchase_ontheway_temp; "
,
commandTimeout
:
0
);
}
catch
(
Exception
ex
)
{
...
...
AutoTurnOver.Models/Report/quantity_out_stock_detail_dto.cs
View file @
ef41465a
...
...
@@ -64,6 +64,11 @@ namespace AutoTurnOver.Models.Report
/// </summary>
public
decimal
bailun_sku_quantity_ordered
{
get
;
set
;
}
/// <summary>
/// 发货数量
/// </summary>
public
decimal
bailun_sku_quantity_shipped
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
string
warehouse_name
{
get
;
set
;
}
...
...
AutoTurnOver/Controllers/ReportsController.cs
View file @
ef41465a
...
...
@@ -302,7 +302,7 @@ namespace AutoTurnOver.Controllers
// Detail
DataTable
table
=
new
DataTable
();
string
[]
cols
=
new
string
[]
{
"缺货统计时间"
,
"平台订单号"
,
"平台类型"
,
"百伦订单号"
,
"付款交易号"
,
"站点"
,
"付款时间"
,
"销售账号"
,
"国家"
,
"sku"
,
"订单所有itemid"
,
"产品名称"
,
"订单sku销量"
,
"发货仓库编码"
,
"发货仓库"
,
"是否缺货"
,
"仓库总缺货"
,
"国内仓总缺货"
,
"其他有库存仓库"
,
"其他仓库库存数"
,
"国内仓是否缺货"
,
"采购员"
,
"产品名称"
,
"订单sku销量"
,
"发货
数量"
,
"发货
仓库编码"
,
"发货仓库"
,
"是否缺货"
,
"仓库总缺货"
,
"国内仓总缺货"
,
"其他有库存仓库"
,
"其他仓库库存数"
,
"国内仓是否缺货"
,
"采购员"
,
"平台物流方式"
,
"发货物流方式"
,
"sku监控状态"
,
"销售状态"
,
"总在途库存数"
,
"最先到货采购单"
,
"最快到货时间"
,
"采购单供应商"
,
"采购单阿里巴巴单号"
,
"采购单物流单号"
};
foreach
(
var
item
in
cols
)
...
...
@@ -327,6 +327,7 @@ namespace AutoTurnOver.Controllers
row
[
"订单所有itemid"
]
=
itemData
.
items
;
row
[
"产品名称"
]
=
itemData
.
sku_name
;
row
[
"订单sku销量"
]
=
itemData
.
bailun_sku_quantity_ordered
;
row
[
"发货数量"
]
=
itemData
.
bailun_sku_quantity_shipped
;
row
[
"发货仓库编码"
]
=
itemData
.
warehouse_code
;
row
[
"发货仓库"
]
=
itemData
.
warehouse_name
;
row
[
"是否缺货"
]
=
itemData
.
is_out_stock
;
...
...
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