From e9532ae4d73aa8a60aa74afe79c525befd269b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Mon, 27 Apr 2026 06:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(system):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E4=B8=AD=E8=BF=87?= =?UTF-8?q?=E6=BB=A4=E6=A8=A1=E6=9D=BFID=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了UserMapper.xml中用户查询条件中的template_id过滤 - 确保管理员和超级管理员帐号查询不受模板ID限制 - 优化查询逻辑,避免因template_id导致漏查符合条件的用户 --- .../java/com/gxwebsoft/common/system/mapper/xml/UserMapper.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/com/gxwebsoft/common/system/mapper/xml/UserMapper.xml b/src/main/java/com/gxwebsoft/common/system/mapper/xml/UserMapper.xml index b1da35d..374314a 100644 --- a/src/main/java/com/gxwebsoft/common/system/mapper/xml/UserMapper.xml +++ b/src/main/java/com/gxwebsoft/common/system/mapper/xml/UserMapper.xml @@ -323,7 +323,6 @@ 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) AND a.tenant_id = #{param.tenantId}