超管后台 - 修改项目详情项目概述内容部分 子账号数量的统计逻辑

This commit is contained in:
柳清爽
2025-04-23 14:08:53 +08:00
parent b68efe151c
commit 3e12687cc9

View File

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