Commit 9a6b92a9 by 泽锋 李

fix

parent 9a72600f
......@@ -494,7 +494,7 @@ from dc_auto_turnover as dat
var init_now = DateTime.Now.ToDayHome();
var end_date = DateTime.Parse(now.ToString("yyyy-MM-dd 23:00:00"));
var total = _connection.QueryFirstOrDefault<int>(" select count(1) from dc_auto_turnover where gmt_modified<@init_now ",new { init_now });
var rows = (int)Math.Floor(total / ((end_date- init_now).TotalMinutes-5));
var rows = (int)Math.Floor(total / ((end_date- init_now).TotalMinutes / 11 ));
var datas = _connection.Query<ResetHistoryDto>(" select bailun_sku,warehouse_code from dc_auto_turnover where gmt_modified<@init_now limit @rows ", new { init_now,rows }).ToList();
if (datas != null)
{
......
......@@ -32,8 +32,8 @@ namespace ResetOutofstock
//dc_aims_transfer_warehouse_dao.TransferWarehouseTask();
//daily.ResetFbaExtendReview(DateTime.Now);
//report.PurchaseWeekBackUp();
//dc_auto_turnover.ResetHistory();
}
catch (Exception ex)
{
......
......@@ -252,7 +252,7 @@ namespace ResetOutofstock
Console.WriteLine(ex.Message);
}
Thread.Sleep(55 * 1000);
Thread.Sleep(10 * 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