新增注册功能 通过手机号注册账号90%

This commit is contained in:
WangHao
2021-04-18 20:36:23 +08:00
parent af5faf60df
commit 4131d8bdca
17 changed files with 557 additions and 228 deletions

View File

@ -117,7 +117,7 @@ public interface SysUserMapper
*/
public int selectUserByEmail(String email);
/**
* 查询登陆名称是否唯一
* 查询登陆账号是否唯一
*
* @param userName 用户名
* @return 用户对象信息

View File

@ -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>