|
|
@@ -837,15 +837,61 @@ public class WebpageController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
modelview.addObject("projects", jtBusinessProjects);
|
|
|
+ List<PolicyResult> policies = (List<PolicyResult>) policyService
|
|
|
+ .searchPolicy("", 2, null, null, "web_index", 1, 99, null).getList();
|
|
|
+ for (PolicyResult p : policies) {
|
|
|
+ if (null != p.getTitleImg() && p.getTitleImg().contains(",")) {
|
|
|
+ p.setTitleImg(p.getTitleImg().substring(0, p.getTitleImg().indexOf(",")));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ modelview.addObject("policys", policies);//政策
|
|
|
List<News> newsList = (List<News>) newsService
|
|
|
.listNews(0, null, null, null, null, null, null, 1, 8, "2", null, null,null).getList();
|
|
|
modelview.addObject("news", newsList);//资讯
|
|
|
+ //
|
|
|
+ List<News> subscriptions = (List<News>) newsService
|
|
|
+ .listNews(99, null, null, null, null, null, null, 1, 8, "2", null, null,null).getList();
|
|
|
+ modelview.addObject("subscription", subscriptions);//技淘观点精选
|
|
|
+
|
|
|
+ if (subscriptions != null && subscriptions.size() > 0 && subscriptions.get(0).getSourceUrl() != null
|
|
|
+ && subscriptions.get(0).getSourceUrl().contains(".")) {
|
|
|
+ modelview.addObject("videoUrl", subscriptions.get(0).getSourceUrl());
|
|
|
+ }
|
|
|
+
|
|
|
//获得轮播图数据
|
|
|
List<Banners> blist = bannersService.findBannersList("index", 0, 4, 1);
|
|
|
if(null != blist){
|
|
|
modelview.addObject("bannerlist", blist);
|
|
|
}
|
|
|
-
|
|
|
+ //视频
|
|
|
+ String url = adminVideoService.getIndexVideo(1).getUrl();//首页
|
|
|
+ modelview.addObject("vurl", url);
|
|
|
+ // List<AchievementObject>
|
|
|
+ // achievementObjects=achievementService.getHotAchievements(9, url,
|
|
|
+ // "web_index");
|
|
|
+ // modelview.addObject("achievements",achievementObjects);
|
|
|
+ //
|
|
|
+ //
|
|
|
+ //
|
|
|
+ //
|
|
|
+ // List<DemandListBo> demandListBos=demandService.getHotDemand(9, url,
|
|
|
+ // "web_index");
|
|
|
+ // for(DemandListBo demandListBo:demandListBos) {
|
|
|
+ // if(demandListBo.getPictureUrl()==null ||
|
|
|
+ // !demandListBo.getPictureUrl().contains("."))demandListBo.setPictureUrl(null);
|
|
|
+ // else
|
|
|
+ // demandListBo.setPictureUrl(demandListBo.getPictureUrl().split(",")[0]);
|
|
|
+ // }
|
|
|
+ // //专家
|
|
|
+ // List<UserIdentityBo>aExperts=userIdentityService.getExperts(8);
|
|
|
+ // for(UserIdentityBo u:aExperts) {
|
|
|
+ // if(u.getHeadPortraitUrl()!=null &&
|
|
|
+ // u.getHeadPortraitUrl().length()<=0) {
|
|
|
+ // u.setHeadPortraitUrl(null);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // modelview.addObject("experts",aExperts);
|
|
|
+ // modelview.addObject("demands",demandListBos);
|
|
|
|
|
|
return modelview;
|
|
|
}
|