| | |
| | | where user_id = #{userId} and del_flag = '0' |
| | | </update> |
| | | |
| | | <!-- |
| | | 忘记密码专用:只写 password 一列的语句,绝不挂到共享的 updateAccountUser 上。 |
| | | 密文由服务层 BCrypt 加密后传入;重置流程不触碰其它资料。 |
| | | --> |
| | | <update id="updateUserPassword" parameterType="AccountUser"> |
| | | update account_user |
| | | <set> |
| | | password = #{password}, |
| | | <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} and del_flag = '0' |
| | | </update> |
| | | |
| | | <!-- 逻辑删除:保留行,仅置删除标志 --> |
| | | <update id="deleteAccountUserById" parameterType="Long"> |
| | | update account_user set del_flag = '2' where user_id = #{userId} |