Commit ef41465a by lizefeng

订单缺货明细,新增发货数量

parent 88eba714
...@@ -193,7 +193,8 @@ t1.logistics_method_name, ...@@ -193,7 +193,8 @@ t1.logistics_method_name,
(case when t6.`status`=1 then '停售' else '在售' end) as 'sku_status', (case when t6.`status`=1 then '停售' else '在售' end) as 'sku_status',
(t2.quantity_transfer+t2.quantity_purchase) as 'quantity_ontheway', -- 总在途 (t2.quantity_transfer+t2.quantity_purchase) as 'quantity_ontheway', -- 总在途
t8.buy_ontheway_detail, t8.buy_ontheway_detail,
t9.items t9.items,
t1.bailun_sku_quantity_shipped
from dc_base_oms_sku_outofstock as t1 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_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 left join dc_base_warehouse as t_db on t1.warehouse_code = t_db.warehouse_code
...@@ -1081,7 +1082,7 @@ GROUP BY ...@@ -1081,7 +1082,7 @@ GROUP BY
alter table dc_auto_purchase_ontheway rename dc_auto_purchase_onthewayTemp; 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_ontheway_temp rename dc_auto_purchase_ontheway;
alter table dc_auto_purchase_onthewayTemp rename dc_auto_purchase_ontheway_temp; 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) catch (Exception ex)
{ {
......
...@@ -64,6 +64,11 @@ namespace AutoTurnOver.Models.Report ...@@ -64,6 +64,11 @@ namespace AutoTurnOver.Models.Report
/// </summary> /// </summary>
public decimal bailun_sku_quantity_ordered { get; set; } 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_code { get; set; }
public string warehouse_name { get; set; } public string warehouse_name { get; set; }
......
...@@ -302,7 +302,7 @@ namespace AutoTurnOver.Controllers ...@@ -302,7 +302,7 @@ namespace AutoTurnOver.Controllers
// Detail // Detail
DataTable table = new DataTable(); DataTable table = new DataTable();
string[] cols = new string[] { "缺货统计时间", "平台订单号", "平台类型", "百伦订单号", "付款交易号", "站点", "付款时间", "销售账号","国家","sku","订单所有itemid", string[] cols = new string[] { "缺货统计时间", "平台订单号", "平台类型", "百伦订单号", "付款交易号", "站点", "付款时间", "销售账号","国家","sku","订单所有itemid",
"产品名称", "订单sku销量", "发货仓库编码","发货仓库", "是否缺货", "仓库总缺货", "国内仓总缺货", "其他有库存仓库", "其他仓库库存数","国内仓是否缺货","采购员", "产品名称", "订单sku销量", "发货数量","发货仓库编码","发货仓库", "是否缺货", "仓库总缺货", "国内仓总缺货", "其他有库存仓库", "其他仓库库存数","国内仓是否缺货","采购员",
"平台物流方式", "发货物流方式", "sku监控状态", "销售状态", "总在途库存数", "最先到货采购单","最快到货时间","采购单供应商","采购单阿里巴巴单号","采购单物流单号" "平台物流方式", "发货物流方式", "sku监控状态", "销售状态", "总在途库存数", "最先到货采购单","最快到货时间","采购单供应商","采购单阿里巴巴单号","采购单物流单号"
}; };
foreach (var item in cols) foreach (var item in cols)
...@@ -327,6 +327,7 @@ namespace AutoTurnOver.Controllers ...@@ -327,6 +327,7 @@ namespace AutoTurnOver.Controllers
row["订单所有itemid"] = itemData.items; row["订单所有itemid"] = itemData.items;
row["产品名称"] = itemData.sku_name; row["产品名称"] = itemData.sku_name;
row["订单sku销量"] = itemData.bailun_sku_quantity_ordered; row["订单sku销量"] = itemData.bailun_sku_quantity_ordered;
row["发货数量"] = itemData.bailun_sku_quantity_shipped;
row["发货仓库编码"] = itemData.warehouse_code; row["发货仓库编码"] = itemData.warehouse_code;
row["发货仓库"] = itemData.warehouse_name; row["发货仓库"] = itemData.warehouse_name;
row["是否缺货"] = itemData.is_out_stock; row["是否缺货"] = itemData.is_out_stock;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment