Преглед изворни кода

页面修改/业务品类修改

liliang4869 пре 7 година
родитељ
комит
5b96376ab7

+ 38 - 30
src/main/java/com/goafanti/business/bo/JtBusinessCategoryBo.java

@@ -1,30 +1,38 @@
-package com.goafanti.business.bo;
-
-import java.util.List;
-
-import com.goafanti.common.model.JtBusinessCategory;
-
-public class JtBusinessCategoryBo {
-String topLevel;
-String topLevelId;
-List<JtBusinessCategory>children;
-public String getTopLevel() {
-	return topLevel;
-}
-public void setTopLevel(String topLevel) {
-	this.topLevel = topLevel;
-}
-public List<JtBusinessCategory> getChildren() {
-	return children;
-}
-public void setChildren(List<JtBusinessCategory> children) {
-	this.children = children;
-}
-public String getTopLevelId() {
-	return topLevelId;
-}
-public void setTopLevelId(String topLevelId) {
-	this.topLevelId = topLevelId;
-}
-
-}
+package com.goafanti.business.bo;
+
+import java.util.List;
+
+import com.goafanti.common.model.JtBusinessCategory;
+
+public class JtBusinessCategoryBo {
+String topLevel;
+String topLevelId;
+List<JtBusinessCategory>children;
+String topImg;
+
+public String getTopImg() {
+	return topImg;
+}
+public void setTopImg(String topImg) {
+	this.topImg = topImg;
+}
+public String getTopLevel() {
+	return topLevel;
+}
+public void setTopLevel(String topLevel) {
+	this.topLevel = topLevel;
+}
+public List<JtBusinessCategory> getChildren() {
+	return children;
+}
+public void setChildren(List<JtBusinessCategory> children) {
+	this.children = children;
+}
+public String getTopLevelId() {
+	return topLevelId;
+}
+public void setTopLevelId(String topLevelId) {
+	this.topLevelId = topLevelId;
+}
+
+}

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

@@ -17,6 +17,7 @@ import com.goafanti.achievement.service.AchievementService;
 import com.goafanti.app.bo.consultantListBo;
 import com.goafanti.banners.enums.BannersType;
 import com.goafanti.banners.service.BannersService;
+import com.goafanti.business.bo.JtBusinessCategoryBo;
 import com.goafanti.business.bo.JtBusinessCategoryTree;
 import com.goafanti.business.service.JtBusinessService;
 import com.goafanti.common.bo.PolicyEntity;
@@ -564,7 +565,9 @@ public class WebpageController extends BaseController {
 	public ModelAndView mainIndex(HttpServletRequest request, ModelAndView modelview) {
 		String url =com.goafanti.common.utils.StringUtils.getDomainByHttpRequest(request);
 		modelview.setViewName("/portal/index");
-		@SuppressWarnings("unchecked")
+	
+		List<JtBusinessCategoryBo> patentCategory=jtBusinessService.getCategoryBoList(1);
+		modelview.addObject("patentCategory",patentCategory);
 		List<JtBusinessProject> jtBusinessProjects=(List<JtBusinessProject>) jtBusinessService.getProjects(null, null, null, 5, 1, 1, 2, 0, 1,0,0).getList();
 		for(JtBusinessProject project:jtBusinessProjects) { 
 			if(project.getMaxImgUrl()!=null && project.getMaxImgUrl().length()<=0)project.setMaxImgUrl(null);

+ 2 - 1
src/main/java/com/goafanti/common/mapper/JtBusinessCategoryMapper.xml

@@ -434,7 +434,8 @@ where
     <select id="getCategoryBoList" resultMap="JtBusinessCategoryBoResult">
     select 
     name as topLevel,
-    id as topLevelId
+    id as topLevelId,
+    img_url as topImg
     from jt_business_category
     where layer=1
     <if test="module!=null">

Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/index.html


Разлика између датотеке није приказан због своје велике величине
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/patentList.html