|
|
@ -92,15 +92,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkUserNameUnique" parameterType="String" resultType="int">
|
|
|
|
<select id="checkUserNameUnique" parameterType="String" resultType="int">
|
|
|
|
select count(1) from sys_user where user_name = #{userName}
|
|
|
|
select count(1) from sys_user where user_name = #{userName} limit 1
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkPhoneUnique" parameterType="String" resultMap="SysUserResult">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
|
|
<insert id="insertUser" parameterType="SysUser" useGeneratedKeys="true" keyProperty="userId">
|
|
|
|