Commit 11aad69f by 泽锋 李

ebay 改零增量推送改成6小时一次

parent f2f5343f
......@@ -519,7 +519,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
{
sql += $" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=1 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
//sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
......@@ -577,7 +577,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
{
no_library_sql += $" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=2 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
no_library_sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
//no_library_sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
......@@ -744,7 +744,7 @@ and ( ifnull(t6.usable_stock,0)<ifnull(t7.quantity_unshipped,0) ) -- 有缺货
{
sql += $" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=1 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
//sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
......@@ -788,7 +788,7 @@ and not exists ( select * from dc_auto_shortage_push_not_config where dc_auto_sh
{
no_library_sql += $" and not exists ( select * from dc_auto_shortage_push where dc_auto_shortage_push.warehouse_code = t1.warehouse_code and dc_auto_shortage_push.bailun_sku = t1.bailun_sku and dc_auto_shortage_push.`type`=2 and dc_auto_shortage_push.platform='{platform}' and dc_auto_shortage_push.has_return_goods=0 ) ";
// 增量推,要剔除全量推的数据
no_library_sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
//no_library_sql += " and ( t_full_push.status is null or t_full_push.status=0 ) ";
}
else
{
......
......@@ -22,7 +22,7 @@ namespace AutoTurnOver.Purchase.AverageTarget
try
{
Console.WriteLine($"开始 init ,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
PurchaseAverageTargetServices.CalculationTransfer(days:(360*3),has_transfer:true);
//PurchaseAverageTargetServices.CalculationTransfer(days:(360*3),has_transfer:true);
Console.WriteLine($"结束 init,线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
}
catch (Exception ex)
......
......@@ -79,7 +79,7 @@ namespace ShortagePush
}
Thread.Sleep(30 * 60 * 1000);
Thread.Sleep(6 * 60 * 60 * 1000);
}
});
......
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