瀏覽代碼

修改政策

liliang4869 7 年之前
父節點
當前提交
0e75b33673
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/java/com/goafanti/common/controller/WebpageController.java

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

@@ -290,10 +290,11 @@ public class WebpageController extends BaseController {
 		modelview.addObject("gqc1",gaoqi);}
 		//知识产权贯标
 		JtBusinessCategory zscqgb=jtBusinessService.getBusinessCategoryByLayerAndName(1, "知识产权");
+		if(zscqgb!=null) {
 		List<JtBusinessCategory> zscqgbCategories=jtBusinessService.getBusinessCategoryBySuperId(zscqgb.getId(), 4);
 		int[]zscqsizes= {1,2,4,10};
 		businessHelper(modelview, "zscqgb", zscqgbCategories, zscqsizes);
-		modelview.addObject("zscqc1",zscqgb);
+		modelview.addObject("zscqc1",zscqgb);}
 		//企业认证
 		JtBusinessCategory qiyerenzheng=jtBusinessService.getBusinessCategoryByLayerAndName(1, "企业认证");
 		if(qiyerenzheng!=null) {
@@ -676,7 +677,7 @@ public class WebpageController extends BaseController {
 		modelview.addObject("practicalTechnology",practicalTechnology); 
 		
 //		List<PolicyEntity>intellectualPropertyPolicyList=achievementService.getIntellectualProperty(5);
-		List<Policy> policies=(List<Policy>) policyService.searchPolicy("", null, null, null, "web_index", 1, 5);
+		List<Policy> policies=(List<Policy>) policyService.searchPolicy("", null, null, null, "web_index", 1, 5).getList();
 		modelview.addObject("policyList",policies);
 		return modelview;
 	}