超管后台 - 修改项目详情项目概述内容部分 子账号数量的统计逻辑
This commit is contained in:
@@ -60,7 +60,9 @@ class GetCompanyDetailForProfileController extends BaseController
|
||||
*/
|
||||
protected function getUsersCountByCompanyId(int $companyId): int
|
||||
{
|
||||
return UserModel::where('companyId', $companyId)->count();
|
||||
$where = array_merge(compact('companyId'), array('isAdmin' => 0));
|
||||
|
||||
return UserModel::where($where)->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user