}
@RequestMapping(value = "/list/category/{ownerId}/{categoryId}", method = RequestMethod.GET)
public ModelAndView listArticleByCategoryId(Page page, @PathVariable Long categoryId, @PathVariable Long ownerId) {
ModelAndView mav = new ModelAndView();
Category currentCategory = categoryService.getCategoryById(categoryId);
if (currentCategory != null) {
// Page page = new Page();
page.setSize(listArticlePageSize);
// page.setCurpage(1);
Integer authority = AuthorityUtil.getAuthority(null, currentCategory.getId());
List<Article> articles = articleService.getArticleByCategoryId(page, categoryId, ownerId, authority);
mav.addObject("ARTICLES", articles);
mav.setViewName(ViewPaths.ARTICLE_LISTARTICLE);
mav.addObject("CATEGORY_Id", categoryId);
List<Category> categories = categoryService.getCategoryByOwnerId(currentCategory.getOwnerId());
Category category = new Category();
category.setId(Long.valueOf(0));
category.setCategoryName("全部日志");
categories.add(0, category);
mav.addObject("CATEGORIES", categories);
mav.addObject("CURRENT_CATEGORY", categoryId);