From 46487e8ca1ba3f0cbf794f8e66ce69d69feae62c Mon Sep 17 00:00:00 2001 From: tamguo Date: Thu, 6 Dec 2018 10:58:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tamguo/web/BookCategoryController.java | 2 +- .../main/resources/templates/category.html | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tamguo-bms/src/main/java/com/tamguo/web/BookCategoryController.java b/tamguo-bms/src/main/java/com/tamguo/web/BookCategoryController.java index cb43126..7ff55c2 100644 --- a/tamguo-bms/src/main/java/com/tamguo/web/BookCategoryController.java +++ b/tamguo-bms/src/main/java/com/tamguo/web/BookCategoryController.java @@ -40,7 +40,7 @@ public class BookCategoryController { } // 查询分类 model.addObject("bookCategoryList", iBookCategoryService.selectList(Condition.create().eq("parent_id", "0"))); - model.addObject("categoryId", id); + model.addObject("category", iBookCategoryService.selectById(id)); model.addObject("bookPage", bookPage); return model; } diff --git a/tamguo-bms/src/main/resources/templates/category.html b/tamguo-bms/src/main/resources/templates/category.html index 78dec55..6a3fd72 100644 --- a/tamguo-bms/src/main/resources/templates/category.html +++ b/tamguo-bms/src/main/resources/templates/category.html @@ -1,15 +1,15 @@ - 专业的高中书籍托管平台_探书网 + 专业的高中书籍托管平台_探书网 - - + + @@ -29,8 +29,8 @@
  • 首页
  • -
  • - 文章 +
  • + 文章