Commit 97fb5133 by lizefeng

修复实时库存,不显示产品名称,跟内部编码的问题

parent b4bcd79d
...@@ -250,11 +250,12 @@ left join dc_mid_transit as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehous ...@@ -250,11 +250,12 @@ left join dc_mid_transit as t4 on t1.bailun_sku = t4.bailun_sku and t1.warehous
else else
{ {
sql = @" sql = @"
select select
t1.*,
(case when dbw.hq_type='fba仓' then dbw.bailun_account else dbw.warehouse_name end) as warehouse_name, (case when dbw.hq_type='fba仓' then dbw.bailun_account else dbw.warehouse_name end) as warehouse_name,
t1.sku_title_cn as 'sku_name', t3.sku_title_cn as 'base_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 as 'sku_product_inner_code',
t3.category_simple_name, 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,
...@@ -262,8 +263,7 @@ t1.bailun_sku,t1.warehouse_code,t4.quantity_out_stock,t4.gmt_out_stock_modified, ...@@ -262,8 +263,7 @@ t1.bailun_sku,t1.warehouse_code,t4.quantity_out_stock,t4.gmt_out_stock_modified,
( case when t7.`status`=0 or t7.`status` is null then 0 else 1 end ) as 'monitor_status', ( case when t7.`status`=0 or t7.`status` is null then 0 else 1 end ) as 'monitor_status',
t6.history_sevenday_sales,t6.history_fourteenday_sales,t6.history_thirtyday_sales, t6.history_sevenday_sales,t6.history_fourteenday_sales,t6.history_thirtyday_sales,
t6.history_sevenday_sales_ebay,t6.history_fourteenday_sales_ebay,t6.history_thirtyday_sales_ebay, t6.history_sevenday_sales_ebay,t6.history_fourteenday_sales_ebay,t6.history_thirtyday_sales_ebay,
t6.history_sevenday_sales_aliexpress,t6.history_fourteenday_sales_aliexpress,t6.history_thirtyday_sales_aliexpress, t6.history_sevenday_sales_aliexpress,t6.history_fourteenday_sales_aliexpress,t6.history_thirtyday_sales_aliexpress
t1.*
from from
dc_base_stock as t1 dc_base_stock as t1
left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku
......
...@@ -165,6 +165,8 @@ namespace AutoTurnOver.Models ...@@ -165,6 +165,8 @@ namespace AutoTurnOver.Models
public class dc_base_stock_dto : dc_base_stock public class dc_base_stock_dto : dc_base_stock
{ {
public string base_sku_name { get; set; }
public string sku_product_inner_code { get; set; }
public int monitor_status { get; set; } public int monitor_status { get; set; }
public string warehouse_name { get; set; } public string warehouse_name { get; set; }
public string sku_name { get; set; } public string sku_name { get; set; }
......
...@@ -114,9 +114,9 @@ namespace AutoTurnOver.Services ...@@ -114,9 +114,9 @@ namespace AutoTurnOver.Services
row["百伦简易分类"] = itemData.category_simple_name; 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.base_sku_name;
//row["英文名称"] = itemData.sku_title_en; //row["英文名称"] = itemData.sku_title_en;
row["内部编码"] = itemData.product_inner_code; row["内部编码"] = itemData.sku_product_inner_code;
row["仓库编码"] = itemData.warehouse_code; row["仓库编码"] = itemData.warehouse_code;
row["仓库名称"] = itemData.warehouse_name; row["仓库名称"] = itemData.warehouse_name;
row["货主编码"] = itemData.owner_code; row["货主编码"] = itemData.owner_code;
......
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