Commit 3947db13 by 泽锋 李

采购建议新增首单日期和首单单号

parent 3b7b495d
......@@ -501,6 +501,8 @@ tr_task.remarks as 'replace_logistics_remarks',
t9.quantity_transfer_order as 'quantity_transfer_order',
t9.quantity_transfer_temp_schedule as 'quantity_transfer_temp_schedule',
t9.quantity_transfer_temporary_storage as 'quantity_transfer_temporary_storage',
t1.first_order_date as 'first_order_date',
t1.first_order_bailun_order_id as 'first_order_bailun_order_id',
t1.is_mother_sku as 'is_mother_map_sku'
from (select * from dc_auto_turnover where gmt_modified>=@btime ) as t1
left join dc_auto_sales as t2 on t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code
......@@ -868,7 +870,9 @@ tr_task.transport_type as 'task_transport_type',
tr_task.remarks as 'replace_logistics_remarks',
t9.quantity_transfer_order as 'quantity_transfer_order',
t9.quantity_transfer_temp_schedule as 'quantity_transfer_temp_schedule',
t9.quantity_transfer_temporary_storage as 'quantity_transfer_temporary_storage'
t9.quantity_transfer_temporary_storage as 'quantity_transfer_temporary_storage',
t1.first_order_date as 'first_order_date',
t1.first_order_bailun_order_id as 'first_order_bailun_order_id'
from dc_auto_turnover as t1
left join dc_auto_sales as t2 on t1.bailun_sku = t2.bailun_sku and t1.warehouse_code = t2.warehouse_code
......
......@@ -53,6 +53,14 @@ namespace AutoTurnOver.Models
/// sku
/// </summary>
public string bailun_sku { get; set; }
/// <summary>
/// 首单单号
/// </summary>
public string first_order_bailun_order_id { get; set; }
/// <summary>
/// 首单日期
/// </summary>
public DateTime? first_order_date { get; set; }
public DateTime? create_time { get; set; }
public string bailun_sku_warehouse_code { get; set; }
......
......@@ -133,6 +133,7 @@ namespace AutoTurnOver.Services
"采购金额", "供应链长度", "供应商名称", "采购类型","采购员","突增关注","待发货百伦单号","7日日均","14日日均","30日日均","海外仓入库天数",
"采购单价" ,"历史7天日均","历史14日均","历史30日均","加权日均","安全库存","今日实际缺货","供应链累积销量","供应链到货当天的销量"
,"预测销量","累积入库数量","实际库存","moq","多备天数","多备数量","预测销量配置","实际推送下单数量","总下单金额","转仓来源仓库编码","转仓来源仓库名称","仓库类型","最新计算时间"
,"首单日期","首单单号"
};
foreach (var item in cols)
{
......@@ -142,6 +143,9 @@ namespace AutoTurnOver.Services
foreach (var itemData in list)
{
DataRow row = table.NewRow();
row["首单日期"] =( itemData.first_order_date==null?"": itemData.first_order_date.Value.ToString("yyyy-MM-dd HH:mm:ss"));
row["首单单号"] = itemData.first_order_bailun_order_id;
row["最新计算时间"] = itemData.calculation_time;
row["仓库类型"] = itemData.hq_type;
row["转仓来源仓库编码"] = itemData.transfer_warehouse_from_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