commit | 55cafb3c01f4c69640cd975eba6e19815b8d2143 | [log] [tgz] |
---|---|---|
author | visionegg <22301117@bjtu.edu.cn> | Sat Jun 07 21:22:13 2025 +0800 |
committer | visionegg <22301117@bjtu.edu.cn> | Sat Jun 07 21:22:13 2025 +0800 |
tree | 9e7e62ee4daf430f84bdaa0cae8ddab87227d96a | |
parent | 528d4e8b620e3311a96c8236fbb63d37b3d22749 [diff] |
fix(follow):将通过用户id查找,改为通过用户名查找,与前端接口相匹配 Change-Id: I061e8e613aa9280d019810fc31226d9fde776e4f
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserFollowMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserFollowMapper.xml index 6fb9169..bea8888 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserFollowMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserFollowMapper.xml
@@ -28,4 +28,10 @@ from sys_user_follow where user_id = #{userId} and author_id = #{authorId} </select> + + <select id="selectUserIdByUsername" resultType="java.lang.Long"> + select user_id + from sys_user + where user_name = #{username} + </select> </mapper> \ No newline at end of file