Merge pull request 'db_topic_comment 表名与数据库脚本修改一致' (#1) from sunjunchen into dev

Reviewed-on: #1
This commit is contained in:
柏码の讲师 2024-12-15 16:54:41 +08:00
commit b46b53ea65
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import lombok.Data;
import java.util.Date;
@Data
@TableName("db_topic_comments")
@TableName("db_topic_comment")
public class TopicComment {
@TableId(type = IdType.AUTO)
Integer id;

View File

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