|
|
@@ -385,15 +385,7 @@ public class WebpageController extends BaseController {
|
|
|
//高企服务
|
|
|
JtBusinessCategory gaoqi = jtBusinessService.getBusinessCategoryByLayerAndName(1, "高新技术企业服务");
|
|
|
if (gaoqi != null) {
|
|
|
- List<JtBusinessCategory> scienceProject = jtBusinessService.getCategoryByModule(2);
|
|
|
- List<JtBusinessProject> gaoqiList = new ArrayList<JtBusinessProject>();
|
|
|
- for (JtBusinessCategory jtBusinessCategory : scienceProject) {
|
|
|
- List<JtBusinessProject> list = jtBusinessService.getBusinessProjectByCategoryId(jtBusinessCategory.getId(), 6, null);
|
|
|
- gaoqiList.addAll(list);
|
|
|
- }
|
|
|
- if(gaoqiList.size()>6){
|
|
|
- gaoqiList.subList(0, 6);
|
|
|
- }
|
|
|
+ List<JtBusinessProject> gaoqiList = jtBusinessService.getKJListByIds(2,null,6);
|
|
|
/*List<JtBusinessProject> gaoqiList = jtBusinessService.getBusinessProjectByCategoryId(gaoqi2.getId(), 6, null);*/
|
|
|
for (JtBusinessProject project : gaoqiList) {
|
|
|
if (project.getMinImgUrl() != null && project.getMinImgUrl().length() <= 0)
|
|
|
@@ -410,32 +402,16 @@ public class WebpageController extends BaseController {
|
|
|
//企业资质认证
|
|
|
JtBusinessCategory qiyerenzheng = jtBusinessService.getBusinessCategoryByLayerAndName(1, "企业资质认定");
|
|
|
if (qiyerenzheng != null) {
|
|
|
- //获得所有下级id
|
|
|
- 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(), 10, null);
|
|
|
- qyrzCategories.addAll(list);
|
|
|
- }
|
|
|
- if(qyrzCategories.size()>10){
|
|
|
- qyrzCategories.subList(0, 10);
|
|
|
- }
|
|
|
+
|
|
|
+ List<JtBusinessProject> qyrzCategories = jtBusinessService.getModuleByName("企业资质认定", null, 12);
|
|
|
+
|
|
|
modelview.addObject("qyrzCategories", qyrzCategories);
|
|
|
modelview.addObject("qyrzc1", qiyerenzheng);
|
|
|
}
|
|
|
//管理体系认证
|
|
|
JtBusinessCategory manageSys2 = jtBusinessService.getBusinessCategoryByLayerAndName(1, "管理体系认证");
|
|
|
if (manageSys2 != null) {
|
|
|
- //获得所有下级id
|
|
|
- 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(), 18, null);
|
|
|
- qyrzCategories.addAll(list);
|
|
|
- }
|
|
|
- if(qyrzCategories.size()>18){
|
|
|
- qyrzCategories.subList(0, 18);
|
|
|
- }
|
|
|
+ List<JtBusinessProject> qyrzCategories = jtBusinessService.getModuleByName("管理体系认证", null, 18);
|
|
|
//List<JtBusinessProject> manageSysPro = jtBusinessService.getBusinessProjectByCategoryId(manageSys2.getId(),18, null);
|
|
|
modelview.addObject("manageSystemList", qyrzCategories);
|
|
|
modelview.addObject("managerSysc1", manageSys2);
|