Commit 57806394 by 泽锋 李

fix

parent 118bc377
......@@ -21,9 +21,9 @@ namespace ShortagePush
{
try
{
System.Console.WriteLine($"开始下首单,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//System.Console.WriteLine($"开始下首单,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
dc_auto_first_order_sku_dao.GeneratePurchaseAdvise();
System.Console.WriteLine($"结束下首单,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
//System.Console.WriteLine($"结束下首单,线程Id:{Thread.CurrentThread.ManagedThreadId},{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
catch (Exception ex)
......
......@@ -121,6 +121,7 @@ namespace AutoTurnOver.Services
//查询最近一个采购建议
if (original_datas == null || original_datas.Count <= 0)
{
Console.WriteLine(" 推送缺货发现没数据:line 124 ");
return;
}
var json_datas = original_datas.ToJson().ToObject<List<dc_auto_purchase_advise_detailed_dto>>();
......@@ -139,7 +140,7 @@ namespace AutoTurnOver.Services
if (datas == null || datas.Count<=0)
{
Console.WriteLine("未查询到数据");
Console.WriteLine(" 推送缺货发现没数据:line 143 ");
return;
}
......@@ -222,7 +223,10 @@ namespace AutoTurnOver.Services
bd_sku = s.Key,
sys_source = s.Any(g => g.type == 2) ? 2 : s.Any(g => g.type == 1) ? 1 : 3,
}).ToList();
if(datas==null || datas.Count <= 0)
{
Console.WriteLine(" 推送缺货发现没数据:line 228 ");
}
var result = ApiServices.PushBuyPlan(data, is_skip_error);
if (result.IsSuccessed)
{
......
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