修复帖子删除后收藏数据展示异常问题

This commit is contained in:
柏码の讲师 2024-12-20 17:31:16 +08:00
parent 21533a3baa
commit ac51f828d7

View File

@ -43,7 +43,7 @@ public interface TopicMapper extends BaseMapper<Topic> {
int userInteractCount(int tid, int uid, String type); int userInteractCount(int tid, int uid, String type);
@Select(""" @Select("""
select * from db_topic_interact_collect left join db_topic on tid = db_topic.id select * from db_topic_interact_collect right join db_topic on tid = db_topic.id
where db_topic_interact_collect.uid = #{uid} where db_topic_interact_collect.uid = #{uid}
""") """)
List<Topic> collectTopics(int uid); List<Topic> collectTopics(int uid);