【8.1.0】【message】【个人消息】更新查询消息详情

pull/60/head
fengshuonan 2024-01-14 21:50:34 +08:00
parent 4037e15497
commit 922100e4cb
1 changed files with 12 additions and 1 deletions

View File

@ -39,6 +39,16 @@ public class SysMessageServiceImpl extends ServiceImpl<SysMessageMapper, SysMess
@Override
public SysMessage detail(SysMessageRequest sysMessageRequest) {
LambdaQueryWrapper<SysMessage> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(SysMessage::getReceiveUserId, LoginContext.me().getLoginUser().getUserId());
wrapper.eq(SysMessage::getMessageId, sysMessageRequest.getMessageId());
// 查询关键信息
wrapper.select(SysMessage::getMessageId, SysMessage::getMessageTitle, SysMessage::getMessageContent, SysMessage::getPriorityLevel,
SysMessage::getMessageSendTime, SysMessage::getMessageType, SysMessage::getMessageUrl, SysMessage::getBusinessType,
SysMessage::getBusinessId);
return this.querySysMessage(sysMessageRequest);
}
@ -48,7 +58,8 @@ public class SysMessageServiceImpl extends ServiceImpl<SysMessageMapper, SysMess
// 查询关键字段
wrapper.select(SysMessage::getMessageId, SysMessage::getMessageTitle, SysMessage::getPriorityLevel, SysMessage::getReadFlag,
SysMessage::getMessageSendTime);
SysMessage::getMessageSendTime, SysMessage::getMessageType, SysMessage::getMessageUrl, SysMessage::getBusinessType,
SysMessage::getBusinessId);
Page<SysMessage> pageList = this.page(PageFactory.defaultPage(), wrapper);
return PageResultFactory.createPageResult(pageList);