Selaa lähdekoodia

首页限制分类个数

liliang4869 7 vuotta sitten
vanhempi
commit
bcba97c1a9

+ 1 - 0
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -577,6 +577,7 @@ public class WebpageController extends BaseController {
 		modelview.setViewName("/portal/index");
 	
 		List<JtBusinessCategoryBo> patentCategory=jtBusinessService.getCategoryBoList(1);
+		patentCategory=patentCategory.subList(0, Math.min(3, patentCategory.size()));
 		modelview.addObject("patentCategory",patentCategory);
 		List<JtBusinessProject> jtBusinessProjects=(List<JtBusinessProject>) jtBusinessService.getProjects(null, null, null, 5, 1, 1, 2, 0, 1,0,0,null).getList();
 		for(JtBusinessProject project:jtBusinessProjects) {