Merge pull request 'db_topic_comment 表名与数据库脚本修改一致' (#1) from sunjunchen into dev
Reviewed-on: #1
This commit is contained in:
commit
b46b53ea65
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user