Commit 92b7640e by 泽锋 李

周转表新增产品类型字段

parent e46ac14b
......@@ -55,6 +55,7 @@ where 1=1 ";
{
sql = @"select (t3.warehouse_name) as 'db_warehouse_name', dat.*,t2.oneday_sales,dat.forecast_oneday_sales as 'forecast_oneday_sales2',
t4.bailun_category_name,
t4.product_type_desc,
t3.hq_type as 'warehouse_type',
( case when t5.`status`=0 or t5.`status` is null then 0 else 1 end ) as 'monitor_status',
( case when t12.`status`=0 or t12.`status` is null then 0 else 1 end ) as 'returngoodspush_state',
......
......@@ -494,6 +494,7 @@ namespace AutoTurnOver.Models
/// 首次出单的订单
/// </summary>
public string first_order_bailun_order_id { get; set; }
public string product_type_desc { get; set; }
/// <summary>
/// 日均出单次数
/// </summary>
......
......@@ -307,7 +307,7 @@ namespace AutoTurnOver.Services
,"采购陆运在途数量","采购海运在途数量","采购空运在途数量","采购铁路在途数量"
,"调拨陆运在途数量","调拨海运在途数量","调拨空运在途数量","调拨铁路在途数量","首次入库时间","供应链累计销量","销量预测规则","默认头程运输方式","默认头程渠道","计算时间",
"日均出单次数","首次出单日期","首次出单订单号",
"备货数量"
"备货数量","产品类型"
};
foreach (var item in cols)
{
......@@ -322,6 +322,7 @@ namespace AutoTurnOver.Services
row["默认头程渠道"] = itemData.head_transport_logistics_code;
row["备货数量"] = itemData.stock_up_sales;
row["产品类型"] = itemData.product_type_desc;
row["日均出单次数"] = itemData.orders_avg;
row["首次出单日期"] = itemData.first_order_date;
......
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