|
@@ -45,7 +45,7 @@ public class EncyclopediaController extends BaseController {
|
|
|
//分类集合
|
|
|
List<BaikeTypeVo> TypeList = productService.geTypeList();
|
|
|
//热搜词
|
|
|
- List<String> hotSeracherWords=productService.getHotWords(typeId);
|
|
|
+ List<String> hotSeracherWords=productService.getHotWords();
|
|
|
model.addAttribute("authUserList", authUserList);
|
|
|
model.addAttribute("TypeList", TypeList);
|
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
@@ -59,7 +59,7 @@ public class EncyclopediaController extends BaseController {
|
|
|
public String getEncyclopediaDetail(final Model model, @PathVariable("id") Integer id) {
|
|
|
BaikeProductVo baikeproduct = productService.getEncyclopediaDetail(id);
|
|
|
//热搜词
|
|
|
- List<String> hotSeracherWords=productService.getHotWords(null);
|
|
|
+ List<String> hotSeracherWords=productService.getHotWords();
|
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
|
model.addAttribute("baikeproduct", baikeproduct);
|
|
|
return ENCYCLOPEDIA_DETAIL;
|
|
@@ -71,7 +71,7 @@ public class EncyclopediaController extends BaseController {
|
|
|
@GetMapping("/search.html")
|
|
|
public String getEncyclopediaSearch(final Model model) {
|
|
|
//热搜词
|
|
|
- List<String> hotSeracherWords=productService.getHotWords(null);
|
|
|
+ List<String> hotSeracherWords=productService.getHotWords();
|
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
|
return ENCYCLOPEDIA_SEARCH;
|
|
|
}
|
|
@@ -82,7 +82,7 @@ public class EncyclopediaController extends BaseController {
|
|
|
@GetMapping("/about.html")
|
|
|
public String getEncyclopediaAbout(final Model model) {
|
|
|
//热搜词
|
|
|
- List<String> hotSeracherWords=productService.getHotWords(null);
|
|
|
+ List<String> hotSeracherWords=productService.getHotWords();
|
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
|
return ENCYCLOPEDIA_ABOUT;
|
|
|
}
|