Commit c3267fb5 by 段启岩

修复博客推荐

parent 2430080b
...@@ -33,5 +33,5 @@ public interface BlogMapper extends BaseMapper<Blog> { ...@@ -33,5 +33,5 @@ public interface BlogMapper extends BaseMapper<Blog> {
* @param blogIds * @param blogIds
* @return * @return
*/ */
List<Blog> listByIdsWithTags(@Param("blogIds")Collection<String> blogIds); List<Blog> listByIdsWithTags(@Param("blogIds") Collection<String> blogIds);
} }
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
on b.blog_id = bt.blog_id on b.blog_id = bt.blog_id
left join tag t left join tag t
on t.tag_id = bt.tag_id on t.tag_id = bt.tag_id
where blog_id in where b.blog_id in
<foreach collection="blogIds" item="blogId" index="index" open="(" close=")" separator=","> <foreach collection="blogIds" item="blogId" index="index" open="(" close=")" separator=",">
#{blogId} #{blogId}
</foreach> </foreach>
......
...@@ -494,7 +494,7 @@ public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IB ...@@ -494,7 +494,7 @@ public class BlogServiceImpl extends ServiceImpl<BlogMapper, Blog> implements IB
blogPage.setPages(blogTagPage.getPages()); blogPage.setPages(blogTagPage.getPages());
blogPage.setSize(blogTagPage.getSize()); blogPage.setSize(blogTagPage.getSize());
if (!CollectionUtils.isEmpty(blogIds)) { if (CollectionUtils.isEmpty(blogIds)) {
blogPage.setRecords(List.of()); blogPage.setRecords(List.of());
} else { } else {
//批量查找博客 //批量查找博客
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment