|
|
@@ -152,9 +152,15 @@ public class PortalNewsController extends BaseController {
|
|
|
String createTimeFormattedDate = n.getCreateTimeFormattedDate();
|
|
|
n.setDataS(createTimeFormattedDate);
|
|
|
}
|
|
|
+ if(newsDetail.getTitleImg()!=null) {
|
|
|
+ String[] imgs=newsDetail.getTitleImg().split(",");
|
|
|
+ modelview.addObject("imgs",imgs);
|
|
|
+ }
|
|
|
modelview.addObject("newsDetail", newsDetail);
|
|
|
modelview.addObject("newsList", newsList.getList());
|
|
|
- modelview.addObject("news", news);}
|
|
|
+ modelview.addObject("news", news);
|
|
|
+
|
|
|
+ }
|
|
|
else {
|
|
|
List<PolicyEntity> newsList = achievementService.getIntellectualProperty(6);
|
|
|
PolicyEntity newsDetail = newsService.getPolicyDetail(id+"");
|
|
|
@@ -172,7 +178,10 @@ public class PortalNewsController extends BaseController {
|
|
|
}
|
|
|
@SuppressWarnings("unchecked")
|
|
|
List<PolicyEntity> la = (List<PolicyEntity>) newsList;
|
|
|
-
|
|
|
+ if(newsDetail.getTitleImg()!=null) {
|
|
|
+ String[] imgs=newsDetail.getTitleImg().split(",");
|
|
|
+ modelview.addObject("imgs",imgs);
|
|
|
+ }
|
|
|
modelview.addObject("newsDetail", newsDetail);
|
|
|
modelview.addObject("newsList", newsList);
|
|
|
if(newsList!=null && newsList.size()>0)
|