新增注册功能 通过手机号注册账号90%
This commit is contained in:
@ -117,7 +117,7 @@ public interface SysUserMapper
|
||||
*/
|
||||
public int selectUserByEmail(String email);
|
||||
/**
|
||||
* 查询登陆名称是否唯一
|
||||
* 查询登陆账号是否唯一
|
||||
*
|
||||
* @param userName 用户名
|
||||
* @return 用户对象信息
|
||||
|
@ -87,16 +87,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
<select id="selectUserByEmail" parameterType="String" resultType="int">
|
||||
SELECT count(*) where email = #{email}
|
||||
SELECT count(*) from sys_user where email = #{email}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="countUserByUserName" parameterType="String" resultType="int">
|
||||
SELECT count(*) where user_name = #{userName}
|
||||
SELECT count(*) from sys_user where user_name = #{userName}
|
||||
</select>
|
||||
|
||||
<select id="countUserByPhone" parameterType="String" resultType="int">
|
||||
SELECT count(*) where phonenumber = #{phone}
|
||||
SELECT count(*) from sys_user where phonenumber = #{phone}
|
||||
</select>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user