Commit 41daa25d by 泽锋 李

缺货推送优化结构

parent 3bdec838
...@@ -882,6 +882,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh ...@@ -882,6 +882,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
var conn = _connection; var conn = _connection;
foreach (var item in datas) foreach (var item in datas)
{ {
item.unique_no = $"{item.bailun_sku}{item.warehouse_code}{item.platform}";
conn.Insert(item); conn.Insert(item);
} }
} }
......
...@@ -12,6 +12,7 @@ namespace AutoTurnOver.Models ...@@ -12,6 +12,7 @@ namespace AutoTurnOver.Models
public int id { get; set; } public int id { get; set; }
public string bailun_sku { get; set; } public string bailun_sku { get; set; }
public string unique_no { get; set; }
public string warehouse_code { get; set; } public string warehouse_code { get; set; }
public string warehouse_type { get; set; } public string warehouse_type { get; set; }
......
...@@ -48,7 +48,7 @@ namespace ShortagePush ...@@ -48,7 +48,7 @@ namespace ShortagePush
System.Console.WriteLine($"结束推送 Ebay -增量 改零数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); System.Console.WriteLine($"结束推送 Ebay -增量 改零数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
System.Console.WriteLine($"开始推送 Ebay - 全量 改零数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); System.Console.WriteLine($"开始推送 Ebay - 全量 改零数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//new ReportServices().ShortagePushEbay(true); //new ReportServices().ShortagePushEbay(true,true);
System.Console.WriteLine($"结束推送 Ebay - 全量 改零数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); System.Console.WriteLine($"结束推送 Ebay - 全量 改零数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
System.Console.WriteLine($"开始推送 Ebay 回货数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}"); System.Console.WriteLine($"开始推送 Ebay 回货数据,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
......
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