This commit is contained in:
PQZ 2025-01-09 12:03:38 +08:00
parent f49d074f65
commit 85d2d143a7

View File

@ -83,7 +83,9 @@ public class InspectionNewsServiceImpl extends ServiceImpl<InspectionNewsMapper,
}
IPage<InspectionNews> list = baseMapper.selectInspectionNewsList(page,inspectionNews);
list.getRecords().forEach(it->{
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->{
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->{
if(StringUtils.isNotEmpty(it.getNewsContent())) {
it.setNewsContent(HtmlFilter.dealFunction(it.getNewsContent()));
}
});
return news;
}