代理商

This commit is contained in:
“wanyongkang”
2021-02-21 18:18:26 +08:00
parent 41e1742f82
commit a53ec5cf96
14 changed files with 732 additions and 1 deletions

View File

@@ -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();
}
}