代理商
This commit is contained in:
@@ -19,4 +19,9 @@ class User extends Model
|
||||
{
|
||||
return $this->field($fields)->where($where)->fetch();
|
||||
}
|
||||
|
||||
//获取代理商的用户数量
|
||||
public function getAgentUser($where = []){
|
||||
return $this->field('agent_id,count(1) as num')->where($where)->group(['agent_id'])->fetchAll();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user