Commit 26d2f374 by lizefeng

把商品moq算法的取最大需求,改成去最大日均

parent f5e55f33
...@@ -101,7 +101,7 @@ select ...@@ -101,7 +101,7 @@ select
if (difference > 0) if (difference > 0)
{ {
// 把最大的那条记录找出来,加给他 // 把最大的那条记录找出来,加给他
var max_data = itemGoods.OrderByDescending(s => s.quantity_final_advise).FirstOrDefault(); var max_data = itemGoods.OrderByDescending(s => s.history_fourteenday_sales).FirstOrDefault();
_connection.Execute(" update dc_auto_purchase_advise_detailed set quantity_final_advise=@quantity_final_advise where id=@id ", new _connection.Execute(" update dc_auto_purchase_advise_detailed set quantity_final_advise=@quantity_final_advise where id=@id ", new
{ {
quantity_final_advise = max_data.quantity_final_advise + difference, quantity_final_advise = max_data.quantity_final_advise + difference,
......
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