|
|
@@ -1040,8 +1040,7 @@ public class WebpageController extends BaseController {
|
|
|
else {
|
|
|
List<PolicyEntity> newsList = achievementService.getIntellectualProperty(6);
|
|
|
PolicyEntity newsDetail = newsService.getPolicyDetail(id+"");
|
|
|
- if (null != newsDetail) {
|
|
|
-
|
|
|
+ if (null != newsDetail) {
|
|
|
String summary = newsDetail.getSummary();
|
|
|
modelview.addObject("hasHighTech",
|
|
|
summary != null && (summary.indexOf("高新") > -1 || summary.indexOf("高企") > -1));
|
|
|
@@ -1051,9 +1050,7 @@ public class WebpageController extends BaseController {
|
|
|
summary != null && (summary.indexOf("软著") > -1 || summary.indexOf("知识产权") > -1));
|
|
|
modelview.addObject("hasTechProj",
|
|
|
summary != null && (summary.indexOf("科技") > -1 || summary.indexOf("项目") > -1));
|
|
|
- }
|
|
|
- @SuppressWarnings("unchecked")
|
|
|
- List<PolicyEntity> la = (List<PolicyEntity>) newsList;
|
|
|
+ }
|
|
|
if(newsDetail.getTitleImg()!=null) {
|
|
|
String[] imgs=newsDetail.getTitleImg().split(",");
|
|
|
if(imgs[0]==null || imgs[0].length()<1)modelview.addObject("imgs",null);
|