Explorar o código

赚钱首页增加军工认证

anderx %!s(int64=7) %!d(string=hai) anos
pai
achega
2b32b2b687

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

@@ -329,7 +329,18 @@ public class WebpageController extends BaseController {
 		modelview.addObject("policyList", policies);
 		// 新闻
 		List<News> news = (List<News>) newsService.portalNewsList(5, 1, null, null, null, null, 2).getList();
-		modelview.addObject("newsList", news);
+		modelview.addObject("newsList", news);
+		//军工认证
+		JtBusinessCategory military = jtBusinessService.getBusinessCategoryByLayerAndName(1, "军工认证");
+		List<JtBusinessProject> l = jtBusinessService.getModuleByName("军工认证", null, 3);
+		for (JtBusinessProject project : l) {
+			//去除数据中的标签
+			if(StringUtils.isNotBlank(project.getIntroduce())){
+				project.setIntroduce(project.getIntroduce().replaceAll("\\<.*?>", "")); 
+			}
+		}
+		modelview.addObject("military", military);
+		modelview.addObject("militaryList", l);
 		// 高企服务
 		/*JtBusinessCategory gaoqi = jtBusinessService.getBusinessCategoryByLayerAndName(1, "高新技术企业服务");
 		JtBusinessCategory gaoqi2 = jtBusinessService.getBusinessCategoryByLayerAndName(2, "高新技术企业服务");