Fix issue#149

pull/157/head
johnniang 2019-05-12 00:18:09 +08:00
parent 2c8d43785d
commit 748233adc4
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ public class PostCategoryServiceImpl extends AbstractCrudService<PostCategory, I
Assert.notNull(pageable, "Page info must not be null"); Assert.notNull(pageable, "Page info must not be null");
// Find all post ids // Find all post ids
Set<Integer> postIds = postCategoryRepository.findAllCategoryIdsByPostId(categoryId); Set<Integer> postIds = postCategoryRepository.findAllPostIdsByCategoryId(categoryId);
return postRepository.findAllByIdIn(postIds, pageable); return postRepository.findAllByIdIn(postIds, pageable);
} }