漏洞修复 用户
This commit is contained in:
parent
3b7e529f42
commit
8a669443c8
|
|
@ -45,8 +45,12 @@ public class SysNoticeServiceImpl implements ISysNoticeService
|
||||||
public List<SysNotice> selectNoticeList(SysNotice notice)
|
public List<SysNotice> selectNoticeList(SysNotice notice)
|
||||||
{
|
{
|
||||||
List<SysNotice> list = noticeMapper.selectNoticeList(notice);
|
List<SysNotice> list = noticeMapper.selectNoticeList(notice);
|
||||||
list.stream().forEach(o -> o.setNoticeContentNoHtml(o.getNoticeContent().replaceAll(HTML_REGEX, "")));
|
list.forEach(o -> {
|
||||||
|
String content = o.getNoticeContent();
|
||||||
|
o.setNoticeContentNoHtml(content != null ? content.replaceAll(HTML_REGEX, "") : "");
|
||||||
|
});
|
||||||
return list;
|
return list;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue