Commit 4d154e1d by 泽锋 李

fix

parent 14993622
......@@ -73,7 +73,7 @@ namespace AutoTurnOver.DB
using (var t = conn.BeginTransaction())
{
// 查询当前待出建议的sku
var sku_list = conn.Query<dc_auto_first_order_sku>(" select * from dc_auto_first_order_sku where order_time < '2020-01-01' ").AsList();
var sku_list = conn.Query<dc_auto_first_order_sku>(" select * from dc_auto_first_order_sku where order_time < '2020-01-01' and is_error=0 ").AsList();
var rule_list = conn.Query<dc_auto_first_order_rule>(" select * from dc_auto_first_order_rule ").AsList();
......@@ -233,6 +233,7 @@ namespace AutoTurnOver.DB
}
catch (Exception ex)
{
conn.Execute(" update dc_auto_first_order_sku set is_error=1 where id in @ids ",new { ids = itemGroup.Select(s=>s.id)});
err_count = true;
conn.Insert(new dc_task_error_log
{
......
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