zjk
4 小时以前 22e936e491b49fddbc664dd0709df55545d2d1fd
hugray-server/ruoyi-modules/ruoyi-user/src/main/resources/mapper/user/AccountUserMapper.xml
@@ -303,6 +303,20 @@
        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}