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