|
@@ -134,15 +134,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<select id="checkLoginNameUnique" parameterType="String" resultType="int">
|
|
|
- select count(1) from sys_user where login_name=#{loginName}
|
|
|
+ select count(1) from sys_user where login_name=#{loginName} limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
|
|
|
- select user_id, phonenumber from sys_user where phonenumber=#{phonenumber}
|
|
|
+ select user_id, phonenumber from sys_user where phonenumber=#{phonenumber} limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
|
|
|
- select user_id, email from sys_user where email=#{email}
|
|
|
+ select user_id, email from sys_user where email=#{email} limit 1
|
|
|
</select>
|
|
|
|
|
|
<select id="selectUserById" parameterType="Long" resultMap="SysUserResult">
|