Commit e2822c27 by 泽锋 李

补海运的采购建议不用清除

parent cbb30c74
......@@ -579,7 +579,9 @@ namespace AutoTurnOver.Services
// 等待周转跑完
AutoTurnOver.DB.dc_auto_turnover.WaitTurnoverQueueTask();
// 清理已经删除的数据
conn.Execute(" update dc_auto_purchase_advise_detailed set status=-1 where bailun_sku_warehouse_code in @bailun_sku_warehouse_codes ", new
conn.Execute(@" update dc_auto_purchase_advise_detailed set status=-1 where bailun_sku_warehouse_code in @bailun_sku_warehouse_codes and main_id in (
select id from dc_auto_purchase_advise where buy_sys_plan_no not in ('补海运')
) ", new
{
bailun_sku_warehouse_codes = bailun_sku_warehouse_codes
}, commandTimeout: 0);
......@@ -660,7 +662,9 @@ namespace AutoTurnOver.Services
// 等待周转跑完
AutoTurnOver.DB.dc_auto_turnover.WaitTurnoverQueueTask();
// 清理已经删除的数据
conn.Execute(" update dc_auto_purchase_advise_detailed set status=-1 where bailun_sku_warehouse_code in @bailun_sku_warehouse_codes ", new
conn.Execute(@" update dc_auto_purchase_advise_detailed set status=-1 where bailun_sku_warehouse_code in @bailun_sku_warehouse_codes and main_id in (
select id from dc_auto_purchase_advise where buy_sys_plan_no not in ('补海运')
) ", new
{
bailun_sku_warehouse_codes = bailun_sku_warehouse_codes
}, commandTimeout: 0);
......
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