Commit 48452575 by lizefeng

修改刷新缺货字段的方法

parent b6ad8e5f
......@@ -418,6 +418,11 @@ SELECT
WHERE (t1.bailun_sku_quantity_ordered - t1.bailun_sku_quantity_pushed - t2.usable_stock - t2.occupy_stock + ifnull(t3.safe_stock, 0)) >= 0
ON DUPLICATE KEY UPDATE quantity_out_stock = values(quantity_out_stock) ,gmt_out_stock_modified = values(gmt_out_stock_modified)
", commandTimeout: 0);
var time = _connection.QueryFirstOrDefault<DateTime>(" select max(gmt_out_stock_modified) from dc_mid_transit ");
_connection.Execute(" update dc_mid_transit set quantity_out_stock =0 where gmt_out_stock_modified < @time ",new {
time= time
});
}
catch (Exception ex)
{
......
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