用户找回密码
This commit is contained in:
@@ -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" />
|
||||
|
Reference in New Issue
Block a user