用户找回密码

This commit is contained in:
2023-12-22 00:14:16 +08:00
parent ce05d3e5cd
commit b20b33ee53
5 changed files with 91 additions and 4 deletions

View File

@@ -145,6 +145,39 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByEmail" parameterType="com.lovenav.entity.User">
update ln_user
<set>
<if test="userLogin != null">
user_login = #{userLogin,jdbcType=VARCHAR},
</if>
<if test="userPassword != null">
user_password = #{userPassword,jdbcType=VARCHAR},
</if>
<if test="phone != null">
phone = #{phone,jdbcType=BIGINT},
</if>
<if test="avatar != null">
avatar = #{avatar,jdbcType=VARCHAR},
</if>
<if test="nickname != null">
nickname = #{nickname,jdbcType=VARCHAR},
</if>
<if test="userEmail != null">
user_email = #{userEmail,jdbcType=VARCHAR},
</if>
<if test="userStatus != null">
user_status = #{userStatus,jdbcType=TINYINT},
</if>
<if test="userRegistered != null">
user_registered = #{userRegistered,jdbcType=TIMESTAMP},
</if>
<if test="roleId != null">
role_id = #{roleId,jdbcType=TINYINT},
</if>
</set>
where user_email = #{userEmail,jdbcType=VARCHAR}
</update>
<select id="selectByEmail" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />