Commit 8e41a997 by 段启岩

问题推荐完成

parent a849e44e
......@@ -35,5 +35,5 @@ public interface IQuestionTagService extends IService<QuestionTag> {
* @param tagIds 标签ID集合
* @return 相关问题ID分页
*/
IPage<String> getQuestionsByTagIds(IPage<String> page, List<String> tagIds);
IPage<String> getQuestionIdsByTagIds(IPage<String> page, List<String> tagIds);
}
......@@ -436,7 +436,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
//3.判断tagIds是否为空
if (!CollectionUtils.isEmpty(tagIds)) {
questionTagService.getQuestionsByTagIds(tagIdsPage, tagIds);
questionTagService.getQuestionIdsByTagIds(tagIdsPage, tagIds);
questionPage.setTotal(tagIdsPage.getTotal());
questionPage.setCurrent(tagIdsPage.getCurrent());
......
......@@ -81,7 +81,7 @@ public class QuestionTagServiceImpl extends ServiceImpl<QuestionTagMapper, Quest
}
@Override
public IPage<String> getQuestionsByTagIds(IPage<String> page, List<String> tagIds) {
public IPage<String> getQuestionIdsByTagIds(IPage<String> page, List<String> tagIds) {
return questionTagMapper.relevantQuestionIdPage(page, tagIds);
}
}
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