fix(system): 修复用户查询条件中过滤模板ID的问题

- 移除了UserMapper.xml中用户查询条件中的template_id过滤
- 确保管理员和超级管理员帐号查询不受模板ID限制
- 优化查询逻辑,避免因template_id导致漏查符合条件的用户
This commit is contained in:
2026-04-27 06:44:43 +08:00
parent 2d012dbd7f
commit e9532ae4d7

View File

@@ -323,7 +323,6 @@
<where>
AND a.deleted = 0
AND a.phone = #{param.phone}
AND a.template_id = #{param.templateId}
AND (a.username = 'superAdmin' OR a.username = 'admin' OR a.is_admin = 1)
<if test="param.tenantId">
AND a.tenant_id = #{param.tenantId}