...
|
...
|
@@ -108,7 +108,10 @@ class User extends Api |
|
|
* 获取抢单数量
|
|
|
*/
|
|
|
private function getGrabCount($where){
|
|
|
return OrderGrab::where($where)->count();
|
|
|
return OrderGrab::alias('a')
|
|
|
->join('order b','b.id = a.order_id')
|
|
|
->where($where)
|
|
|
->count();
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|