|
@@ -53,11 +53,14 @@ public class EncyclopediaController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//分类集合
|
|
//分类集合
|
|
- List<BaikeTypeVo> TypeList = productService.geTypeList();
|
|
|
|
|
|
+ List<BaikeTypeVo> typeList = productService.geTypeList();
|
|
|
|
+ //根据id查询分类信息
|
|
|
|
+ BaikeTypeVo typeData = productService.geTypeListByid(typeId);
|
|
//热搜词
|
|
//热搜词
|
|
List<BaikeHotSearch> hotSeracherWords=productService.getHotWords();
|
|
List<BaikeHotSearch> hotSeracherWords=productService.getHotWords();
|
|
model.addAttribute("authUserList", authUserList);
|
|
model.addAttribute("authUserList", authUserList);
|
|
- model.addAttribute("TypeList", TypeList);
|
|
|
|
|
|
+ model.addAttribute("TypeList", typeList);
|
|
|
|
+ model.addAttribute("Typedata", typeData);
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
model.addAttribute("hotSeracherWords", hotSeracherWords);
|
|
return ENCYCLOPEDIA_LIST;
|
|
return ENCYCLOPEDIA_LIST;
|
|
}
|
|
}
|