Преглед на файлове

知识产权赚钱页面 数据个数更改

limin преди 7 години
родител
ревизия
e29e773a30
променени са 1 файла, в които са добавени 8 реда и са изтрити 8 реда
  1. 8 8
      src/main/java/com/goafanti/common/controller/WebpageController.java

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

@@ -411,14 +411,14 @@ public class WebpageController extends BaseController {
 		JtBusinessCategory qiyerenzheng = jtBusinessService.getBusinessCategoryByLayerAndName(1, "企业资质认定");
 		if (qiyerenzheng != null) {
 			//获得所有下级id
-			List<JtBusinessCategory> xaiji = jtBusinessService.getBusinessCategoryBySuperId(qiyerenzheng.getId(), 1);
+			List<JtBusinessCategory> xaiji = jtBusinessService.getBusinessCategoryBySuperId(qiyerenzheng.getId(), 10);
 			List<JtBusinessProject> qyrzCategories = new ArrayList<JtBusinessProject>();
 			for (int i = 0; i < xaiji.size(); i++) {
-				List<JtBusinessProject> list = jtBusinessService.getBusinessProjectByCategoryId(xaiji.get(i).getId(), 8, null);
+				List<JtBusinessProject> list = jtBusinessService.getBusinessProjectByCategoryId(xaiji.get(i).getId(), 10, null);
 				qyrzCategories.addAll(list);
 			}
-			if(qyrzCategories.size()>16){
-				qyrzCategories.subList(0, 16);
+			if(qyrzCategories.size()>10){
+				qyrzCategories.subList(0, 10);
 			}
 			modelview.addObject("qyrzCategories", qyrzCategories);
 			modelview.addObject("qyrzc1", qiyerenzheng);
@@ -427,14 +427,14 @@ public class WebpageController extends BaseController {
 		JtBusinessCategory manageSys2 = jtBusinessService.getBusinessCategoryByLayerAndName(1, "管理体系认证");
 		if (manageSys2 != null) {
 			//获得所有下级id
-			List<JtBusinessCategory> xaiji = jtBusinessService.getBusinessCategoryBySuperId(manageSys2.getId(), 1);
+			List<JtBusinessCategory> xaiji = jtBusinessService.getBusinessCategoryBySuperId(manageSys2.getId(), 10);
 			List<JtBusinessProject> qyrzCategories = new ArrayList<JtBusinessProject>();
 			for (int i = 0; i < xaiji.size(); i++) {
-				List<JtBusinessProject> list = jtBusinessService.getBusinessProjectByCategoryId(xaiji.get(i).getId(), 8, null);
+				List<JtBusinessProject> list = jtBusinessService.getBusinessProjectByCategoryId(xaiji.get(i).getId(), 18, null);
 				qyrzCategories.addAll(list);
 			}
-			if(qyrzCategories.size()>8){
-				qyrzCategories.subList(0, 8);
+			if(qyrzCategories.size()>18){
+				qyrzCategories.subList(0, 18);
 			}
 			//List<JtBusinessProject> manageSysPro = jtBusinessService.getBusinessProjectByCategoryId(manageSys2.getId(),18, null);
 			modelview.addObject("manageSystemList", qyrzCategories);