Commit 9ae6dc74 by 泽锋 李

刷新数据的服务降频为1个小时刷一次

parent f7abb9b8
......@@ -15,6 +15,13 @@ namespace AutoTurnOver.DB.Base
{
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();//开始计时
// 清理 where 1=1
if(sql.Contains(" and ") && sql.Contains(" 1=1 "))
{
// 如果有自带了查询条件
}
var result_data = new Page<T>();
var item_sql = sql;
if (!string.IsNullOrWhiteSpace(search_data.sidx) && !string.IsNullOrWhiteSpace(search_data.sord) && !item_sql.Contains("order by"))
......
......@@ -29,7 +29,7 @@ namespace ResetOutofstock
}
Thread.Sleep(30 * 60 * 1000);
Thread.Sleep(60 * 60 * 1000);
}
});
return Task.CompletedTask;
......
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