update 优化 通知公告页面增加查看详情功能 支持预览已经编辑好的富文本内容

update 优化 消息盒子相关消息可直接跳转到详情页展示富文本内容
This commit is contained in:
疯狂的狮子Li
2026-03-26 18:05:59 +08:00
parent 029f6a4c11
commit 7722f4f685
3 changed files with 6 additions and 11 deletions

View File

@@ -82,13 +82,13 @@ public class SysNoticeController extends BaseController {
data.put("noticeType", notice.getNoticeType());
data.put("noticeTypeLabel", type);
data.put("noticeTitle", notice.getNoticeTitle());
data.put("noticeId", notice.getNoticeId());
PushHelper.publishAll(PushPayload.of(
PushTypeEnum.NOTICE,
PushSourceEnum.NOTICE,
"[" + type + "] " + notice.getNoticeTitle(),
data,
"/system/notice",
null
"/system/notice?noticeId=" + notice.getNoticeId()
));
return R.ok();
}

View File

@@ -98,7 +98,9 @@ public class SysNoticeServiceImpl implements ISysNoticeService {
@Override
public int insertNotice(SysNoticeBo bo) {
SysNotice notice = MapstructUtils.convert(bo, SysNotice.class);
return baseMapper.insert(notice);
int rows = baseMapper.insert(notice);
bo.setNoticeId(notice.getNoticeId());
return rows;
}
/**