diff --git a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
index 4756c1f18..068128bc1 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysConfigMapper.xml
@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index bb018a730..24a004162 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- select count(1) from sys_user where login_name=#{loginName}
+ select count(1) from sys_user where login_name=#{loginName} limit 1
- select user_id, phonenumber from sys_user where phonenumber=#{phonenumber}
+ select user_id, phonenumber from sys_user where phonenumber=#{phonenumber} limit 1
- select user_id, email from sys_user where email=#{email}
+ select user_id, email from sys_user where email=#{email} limit 1