fix(user): 修改查询条件支持超级管理员和管理员

- 将用户查询条件中超级管理员判断修改为超级管理员或管理员均可
- 修正了 is_super_admin 字段限制,新增对 is_admin 字段的支持
- 保证查询结果包含超级管理员和管理员用户数据
This commit is contained in:
2026-07-27 11:08:57 +08:00
parent a02521e64b
commit 9fdc708bb8

View File

@@ -477,7 +477,7 @@
WHERE u.deleted = 0
AND u.status = 0
AND u.phone = #{phone}
AND u.is_super_admin = 1
AND (u.is_super_admin = 1 OR u.is_admin = 1)
ORDER BY u.update_time DESC,
u.create_time DESC,
u.user_id DESC