正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -399,7 +399,7 @@ class Business extends Base | @@ -399,7 +399,7 @@ class Business extends Base | ||
399 | //当前店铺下的代理人,及代理人的推广数量,并且是成功购买的数量 | 399 | //当前店铺下的代理人,及代理人的推广数量,并且是成功购买的数量 |
400 | $rows = Db::name('verification_staff')->where(['verification_store_id'=>$store_id,'type'=>['in',['0','1','3']]])->field("name,0 as count,user_id")->paginate(1000)->each(function($item){ | 400 | $rows = Db::name('verification_staff')->where(['verification_store_id'=>$store_id,'type'=>['in',['0','1','3']]])->field("name,0 as count,user_id")->paginate(1000)->each(function($item){ |
401 | $ids = Db::name('user')->where(['pid'=>$item['user_id']])->column("id"); | 401 | $ids = Db::name('user')->where(['pid'=>$item['user_id']])->column("id"); |
402 | - $item['count'] = Db::name('verification_order')->where(['user'=>['in',$ids],'type'=>['in',['1','4']]])->count(); | 402 | + $item['count'] = Db::name('verification_order')->where(['user_id'=>['in',$ids],'type'=>['in',['1','4']]])->count(); |
403 | return $item; | 403 | return $item; |
404 | })->toArray(); | 404 | })->toArray(); |
405 | 405 |
-
请 注册 或 登录 后发表评论