|
|
@@ -644,6 +644,11 @@ public class WebpageController extends BaseController {
|
|
|
}
|
|
|
modelview.addObject("projects",jtBusinessProjects);
|
|
|
List<PolicyResult>policies=(List<PolicyResult>) policyService.searchPolicy("", 2, null, null, "web_index", 1, 2,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, 3, "2", null, null).getList();
|
|
|
modelview.addObject("news",newsList);
|