Commit 6b2346b2 by lizefeng

库存导出,新增百伦简易分类

parent 6e028d20
...@@ -255,6 +255,7 @@ left join dc_mid_transit as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehous ...@@ -255,6 +255,7 @@ left join dc_mid_transit as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehous
t1.sku_title_cn as 'sku_name', t1.sku_title_cn as 'sku_name',
t4.quantity_purchase as 'purchase_daily_quantity', t4.quantity_purchase as 'purchase_daily_quantity',
t3.buyer_name,t3.sku_title_en,t3.product_inner_code, t3.buyer_name,t3.sku_title_en,t3.product_inner_code,
t3.category_simple_name,
t4.quantity_purchase as 'realtime_quantity_purchase',t4.quantity_transfer as 'realtime_quantity_transfer', t4.quantity_purchase as 'realtime_quantity_purchase',t4.quantity_transfer as 'realtime_quantity_transfer',
t1.bailun_sku,t1.warehouse_code,t4.quantity_out_stock,t4.gmt_out_stock_modified,t3.weight,t3.unit_price, t1.bailun_sku,t1.warehouse_code,t4.quantity_out_stock,t4.gmt_out_stock_modified,t3.weight,t3.unit_price,
(case when t5.id is null then '未侵权' else '侵权' end) as 'has_tort', (case when t5.id is null then '未侵权' else '侵权' end) as 'has_tort',
......
...@@ -254,5 +254,7 @@ namespace AutoTurnOver.Models ...@@ -254,5 +254,7 @@ namespace AutoTurnOver.Models
public decimal history_sevenday_sales_aliexpress { get; set; } public decimal history_sevenday_sales_aliexpress { get; set; }
public decimal history_fourteenday_sales_aliexpress { get; set; } public decimal history_fourteenday_sales_aliexpress { get; set; }
public decimal history_thirtyday_sales_aliexpress { get; set; } public decimal history_thirtyday_sales_aliexpress { get; set; }
public string category_simple_name { get; set; }
} }
} }
...@@ -97,7 +97,7 @@ namespace AutoTurnOver.Services ...@@ -97,7 +97,7 @@ namespace AutoTurnOver.Services
if (list == null || list.Count <= 0) break; if (list == null || list.Count <= 0) break;
DataTable table = new DataTable(); DataTable table = new DataTable();
string[] cols = new string[] { "Sku", "采购名称", "中文名","内部编码", "仓库编码", "仓库名称", "货主编码","实时采购在途","实时调拨在途" string[] cols = new string[] { "百伦简易分类","Sku", "采购名称", "中文名","内部编码", "仓库编码", "仓库名称", "货主编码","实时采购在途","实时调拨在途"
,"订货数量","运输在途","中转仓库存","冻结库存","供应商库存","预售库存","不良品库存","在途库存","收货待检" ,"订货数量","运输在途","中转仓库存","冻结库存","供应商库存","预售库存","不良品库存","在途库存","收货待检"
,"待上架","可配库存","销售可用库存(聚合)","销售可用库存(私有)","销售可用库存(共享)","在仓库存(共享)","在仓库存(私有)","在仓库存(聚合)","仓库占用(共享)" ,"待上架","可配库存","销售可用库存(聚合)","销售可用库存(私有)","销售可用库存(共享)","在仓库存(共享)","在仓库存(私有)","在仓库存(聚合)","仓库占用(共享)"
,"仓库占用(私有)","仓库占用(聚合)","活动占用","单占用(私有)","订单占用(共享)","订单占用(聚合)","环球更新时间","供应商","采购员","重量","单价","已发货库存","实时缺货","是否侵权", ,"仓库占用(私有)","仓库占用(聚合)","活动占用","单占用(私有)","订单占用(共享)","订单占用(聚合)","环球更新时间","供应商","采购员","重量","单价","已发货库存","实时缺货","是否侵权",
...@@ -111,7 +111,7 @@ namespace AutoTurnOver.Services ...@@ -111,7 +111,7 @@ namespace AutoTurnOver.Services
foreach (var itemData in list) foreach (var itemData in list)
{ {
DataRow row = table.NewRow(); DataRow row = table.NewRow();
row["百伦简易分类"] = itemData.category_simple_name;
row["Sku"] = itemData.bailun_sku; row["Sku"] = itemData.bailun_sku;
row["采购名称"] = itemData.buyer_name; row["采购名称"] = itemData.buyer_name;
row["中文名"] = itemData.sku_title_cn; row["中文名"] = itemData.sku_title_cn;
......
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