Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
beyond-clouds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
4
Issues
4
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
段启岩
beyond-clouds
Commits
c3267fb5
Commit
c3267fb5
authored
Feb 08, 2020
by
段启岩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复博客推荐
parent
2430080b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/main/java/cn/meteor/beyondclouds/modules/blog/mapper/BlogMapper.java
+1
-1
src/main/java/cn/meteor/beyondclouds/modules/blog/mapper/xml/BlogMapper.xml
+1
-1
src/main/java/cn/meteor/beyondclouds/modules/blog/service/impl/BlogServiceImpl.java
+1
-1
No files found.
src/main/java/cn/meteor/beyondclouds/modules/blog/mapper/BlogMapper.java
View file @
c3267fb5
...
@@ -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
);
}
}
src/main/java/cn/meteor/beyondclouds/modules/blog/mapper/xml/BlogMapper.xml
View file @
c3267fb5
...
@@ -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
.b
log_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>
...
...
src/main/java/cn/meteor/beyondclouds/modules/blog/service/impl/BlogServiceImpl.java
View file @
c3267fb5
...
@@ -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
{
//批量查找博客
//批量查找博客
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment