db_topic_comment 表名与数据库脚本修改一致 #1

Merged
NagoColer merged 1 commits from sunjunchen into dev 2024-12-15 16:54:42 +08:00
2 changed files with 2 additions and 2 deletions

View File

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

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 = 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); List<Topic> collectTopics(int uid);
} }