Commit 09d8a582 by 朱继来

调整用户下单数

parent 2763d3d2
Showing with 1 additions and 1 deletions
......@@ -52,7 +52,7 @@ class CrmModel extends Model
if (empty($users)) return 0;
return OrderModel::whereIn('user_id', $users)->where('status', '<>', -1)->groupBy('user_id')->get()->count(); // 去重+统计 laravel需要先get()
return OrderModel::whereIn('user_id', $users)->where('status', '<>', -1)->where('sale_id', $sale_id)->groupBy('user_id')->get()->count(); // 去重+统计 laravel需要先get()
}
......
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 sign in to comment