From 29700b49986eaddd92af3837a86e2b56dd16d7be Mon Sep 17 00:00:00 2001 From: sunjunchen <1094632466@qq.com> Date: Sun, 15 Dec 2024 16:46:51 +0800 Subject: [PATCH] =?UTF-8?q?db=5Ftopic=5Fcomment=20=E8=A1=A8=E5=90=8D?= =?UTF-8?q?=E4=B8=8E=E6=95=B0=E6=8D=AE=E5=BA=93=E8=84=9A=E6=9C=AC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E4=B8=80=E8=87=B4=20select=20=E8=AF=AD=E5=8F=A5?= =?UTF-8?q?=E6=94=B9=E6=88=90right=20join=20=E4=BD=BF=E5=BE=97=E6=9F=A5?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E7=9A=84=E6=97=B6=E5=80=99=E4=B8=8D?= =?UTF-8?q?=E4=BC=9A=E6=9C=89=E7=A9=BA=E7=9A=84=E6=95=B0=E6=8D=AE=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=EF=BC=8C=E5=AF=BC=E8=87=B4BeanUtils.copyProperties(to?= =?UTF-8?q?pic,=20vo);=20=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/example/entity/dto/TopicComment.java | 2 +- .../src/main/java/com/example/mapper/TopicMapper.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/my-project-backend/src/main/java/com/example/entity/dto/TopicComment.java b/my-project-backend/src/main/java/com/example/entity/dto/TopicComment.java index b19dc78..c048114 100644 --- a/my-project-backend/src/main/java/com/example/entity/dto/TopicComment.java +++ b/my-project-backend/src/main/java/com/example/entity/dto/TopicComment.java @@ -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; diff --git a/my-project-backend/src/main/java/com/example/mapper/TopicMapper.java b/my-project-backend/src/main/java/com/example/mapper/TopicMapper.java index b5768ae..b232c29 100644 --- a/my-project-backend/src/main/java/com/example/mapper/TopicMapper.java +++ b/my-project-backend/src/main/java/com/example/mapper/TopicMapper.java @@ -43,7 +43,7 @@ public interface TopicMapper extends BaseMapper { 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 collectTopics(int uid); } -- 2.47.2