1
This commit is contained in:
parent
f49d074f65
commit
85d2d143a7
@ -83,7 +83,9 @@ public class InspectionNewsServiceImpl extends ServiceImpl<InspectionNewsMapper,
|
||||
}
|
||||
IPage<InspectionNews> list = baseMapper.selectInspectionNewsList(page,inspectionNews);
|
||||
list.getRecords().forEach(it->{
|
||||
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
|
||||
if (StringUtils.isNotEmpty(it.getNewsContent())){
|
||||
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
@ -94,7 +96,9 @@ public class InspectionNewsServiceImpl extends ServiceImpl<InspectionNewsMapper,
|
||||
queryWrapper.ne(InspectionNews::getCategory,"jcztz").orderByDesc(InspectionNews::getCreateTime).last("limit 8");
|
||||
List<InspectionNews> list = baseMapper.selectList(queryWrapper);
|
||||
list.forEach(it->{
|
||||
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
|
||||
if (StringUtils.isNotEmpty(it.getNewsContent())){
|
||||
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
|
||||
}
|
||||
});
|
||||
return list;
|
||||
}
|
||||
@ -299,7 +303,9 @@ public class InspectionNewsServiceImpl extends ServiceImpl<InspectionNewsMapper,
|
||||
}
|
||||
IPage<InspectionNews> news = baseMapper.msgList(page, ifShow);
|
||||
news.getRecords().forEach(it->{
|
||||
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
|
||||
if(StringUtils.isNotEmpty(it.getNewsContent())) {
|
||||
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
|
||||
}
|
||||
});
|
||||
return news;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user