Commit 69a900d8 by 泽锋 李

采购建议,新增转仓来源仓库

parent 29b1cbb1
...@@ -1686,6 +1686,9 @@ t5.history_thirtyday_sales as 't_history_thirtyday_sales', ...@@ -1686,6 +1686,9 @@ t5.history_thirtyday_sales as 't_history_thirtyday_sales',
t5.abroad_inbound_config_delivery, t5.abroad_inbound_config_delivery,
t8.from_warehouse_code as 'transfer_warehouse_from_code',
t8.from_warehouse_name as 'transfer_warehouse_from_name',
(t1.history_fourteenday_sales - t5.forecast_fourteenday_sales) as 'sudden_increase' -- 突增关注 (t1.history_fourteenday_sales - t5.forecast_fourteenday_sales) as 'sudden_increase' -- 突增关注
from dc_auto_purchase_advise_detailed as t1 from dc_auto_purchase_advise_detailed as t1
left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code left join dc_base_warehouse as t2 on t1.warehouse_code = t2.warehouse_code
...@@ -1694,6 +1697,7 @@ left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku ...@@ -1694,6 +1697,7 @@ left join dc_base_sku as t3 on t1.bailun_sku = t3.bailun_sku
left join dc_auto_purchase_advise as t4 on t1.main_id = t4.id left join dc_auto_purchase_advise as t4 on t1.main_id = t4.id
left join dc_auto_turnover as t5 on t1.warehouse_code = t5.warehouse_code and t1.bailun_sku = t5.bailun_sku left join dc_auto_turnover as t5 on t1.warehouse_code = t5.warehouse_code and t1.bailun_sku = t5.bailun_sku
left join dc_mid_transit as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code left join dc_mid_transit as t7 on t1.bailun_sku = t7.bailun_sku and t1.warehouse_code = t7.warehouse_code
left join dc_aims_transfer_warehouse_log as t8 on t1.bailun_sku = t8.bailun_sku and t1.warehouse_code = t8.to_warehouse_code
where 1=1 "; where 1=1 ";
} }
......
...@@ -325,6 +325,11 @@ namespace AutoTurnOver.Models ...@@ -325,6 +325,11 @@ namespace AutoTurnOver.Models
public class dc_auto_purchase_advise_detailed_dto : dc_auto_purchase_advise_detailed public class dc_auto_purchase_advise_detailed_dto : dc_auto_purchase_advise_detailed
{ {
/// <summary>
/// 转仓来源仓
/// </summary>
public string transfer_warehouse_from_code { get; set; }
public string transfer_warehouse_from_name { get; set; }
public decimal quantity_actual_push { get public decimal quantity_actual_push { get
{ {
if (ispush == 1) if (ispush == 1)
......
...@@ -110,7 +110,7 @@ namespace AutoTurnOver.Services ...@@ -110,7 +110,7 @@ namespace AutoTurnOver.Services
"内部商品编码", "商品建议采购", "商品14日日均", "商品moq", "日均加权销量", "缺货","实时缺货", "调拨在途", "调拨单在途", "调拨在途(采购临时数据)", "调拨在途(暂存)", "采购在途", "库存数", "内部商品编码", "商品建议采购", "商品14日日均", "商品moq", "日均加权销量", "缺货","实时缺货", "调拨在途", "调拨单在途", "调拨在途(采购临时数据)", "调拨在途(暂存)", "采购在途", "库存数",
"采购金额", "供应链长度", "供应商名称", "采购类型","采购员","突增关注","待发货百伦单号","7日日均","14日日均","30日日均","海外仓入库天数", "采购金额", "供应链长度", "供应商名称", "采购类型","采购员","突增关注","待发货百伦单号","7日日均","14日日均","30日日均","海外仓入库天数",
"采购单价" ,"历史7天日均","历史14日均","历史30日均","加权日均","安全库存","今日实际缺货","供应链累积销量","供应链到货当天的销量" "采购单价" ,"历史7天日均","历史14日均","历史30日均","加权日均","安全库存","今日实际缺货","供应链累积销量","供应链到货当天的销量"
,"预测销量","累积入库数量","实际库存","moq","多备天数","预测销量配置","实际推送下单数量","总下单金额" ,"预测销量","累积入库数量","实际库存","moq","多备天数","预测销量配置","实际推送下单数量","总下单金额","转仓来源仓库编码","转仓来源仓库名称"
}; };
foreach (var item in cols) foreach (var item in cols)
{ {
...@@ -120,6 +120,9 @@ namespace AutoTurnOver.Services ...@@ -120,6 +120,9 @@ namespace AutoTurnOver.Services
foreach (var itemData in list) foreach (var itemData in list)
{ {
DataRow row = table.NewRow(); DataRow row = table.NewRow();
row["转仓来源仓库编码"] = itemData.transfer_warehouse_from_code;
row["转仓来源仓库名称"] = itemData.transfer_warehouse_from_name;
row["采购单价"] = itemData.fixed_unit_price; row["采购单价"] = itemData.fixed_unit_price;
row["历史7天日均"] = itemData.fixed_history_sevenday_sales; row["历史7天日均"] = itemData.fixed_history_sevenday_sales;
row["历史14日均"] = itemData.fixed_history_fourteenday_sales; row["历史14日均"] = itemData.fixed_history_fourteenday_sales;
......
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