diff --git a/extend/base/common/command/admin/role/AdminRoleDeleteBase.php b/extend/base/common/command/admin/role/AdminRoleDeleteBase.php index bcf7a08..7e417e3 100644 --- a/extend/base/common/command/admin/role/AdminRoleDeleteBase.php +++ b/extend/base/common/command/admin/role/AdminRoleDeleteBase.php @@ -39,7 +39,7 @@ class AdminRoleDeleteBase extends Command return false; } - $checkUsers = SystemAdmin::where('auth_ids', 'like', '%' . $roleId . '%') + $checkUsers = SystemAdmin::whereRaw('FIND_IN_SET(:roleId, auth_ids)', ['roleId' => $roleId]) ->where('delete_time', 0) ->count();