and t2.buyer_name='赵美聪' and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase < t1.quantity_out_stock ) ",commandTimeout:0);
and t2.buyer_name in ('赵美聪','张莹霞','张莹霞1') and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase < t1.quantity_out_stock ) ",commandTimeout:0);
// 把 在库+在途>缺货的改成0
// 把 在库+在途>缺货的改成0
_connection.Execute(@" update
_connection.Execute(@" update
dc_auto_turnover as t1,
dc_auto_turnover as t1,
dc_base_sku as t2
dc_base_sku as t2
set t1.quantity_init_advise=0
set t1.quantity_init_advise=0
where t1.bailun_sku = t2.bailun_sku
where t1.bailun_sku = t2.bailun_sku
and t2.buyer_name='赵美聪' and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase >= t1.quantity_out_stock ) ",commandTimeout:0);
and t2.buyer_name in ('赵美聪','张莹霞','张莹霞1') and ( t1.quantity_inventory + t1.quantity_transfer + t1.quantity_purchase >= t1.quantity_out_stock ) ",commandTimeout:0);