漏洞修复 用户

This commit is contained in:
lizhenhua 2025-08-08 13:32:12 +08:00
parent 3b7e529f42
commit 8a669443c8
1 changed files with 12 additions and 8 deletions

View File

@ -45,8 +45,12 @@ public class SysNoticeServiceImpl implements ISysNoticeService
public List<SysNotice> selectNoticeList(SysNotice 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;
}
/**