|
@@ -105,6 +105,9 @@ public class EncyclopediaController extends BaseController {
|
|
|
public String getEncyclopediaSearch(final Model model) {
|
|
|
//热搜词
|
|
|
List<BaikeHotSearch> hotSeracherWords=productService.getHotWords();
|
|
|
+ //分类集合
|
|
|
+ List<BaikeTypeVo> typeList = productService.geTypeList();
|
|
|
+ model.addAttribute("TypeList", typeList);
|
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
|
return ENCYCLOPEDIA_SEARCH;
|
|
|
}
|
|
@@ -116,6 +119,9 @@ public class EncyclopediaController extends BaseController {
|
|
|
public String getEncyclopediaAbout(final Model model) {
|
|
|
//热搜词
|
|
|
List<BaikeHotSearch> hotSeracherWords=productService.getHotWords();
|
|
|
+ //分类集合
|
|
|
+ List<BaikeTypeVo> typeList = productService.geTypeList();
|
|
|
+ model.addAttribute("TypeList", typeList);
|
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
|
return ENCYCLOPEDIA_ABOUT;
|
|
|
}
|