Commit 0b5f67a5 authored by limei's avatar limei

消息提醒

parent 108b2961
......@@ -65,14 +65,19 @@ public class RectifyMsgServiceImpl extends BaseService<RectifyMsgDto,RectifyMsg,
*/
@BusinessIdentify
public List<MsgNoticeDto> msgNotice(Boolean isRead){
LambdaQueryWrapper<InstallNoticeMsg> wrapper = new LambdaQueryWrapper<>();
wrapper.eq(InstallNoticeMsg::getTargetPersonId,orgService.getReginParams().getBusinessInfo().getUserSequenceNbr())
.eq(InstallNoticeMsg::getIsRead,isRead)
.orderByDesc(InstallNoticeMsg::getSendTime);
if(!ValidationUtil.isEmpty(isRead)){
wrapper.eq(InstallNoticeMsg::getIsRead,isRead);
}
LambdaQueryWrapper<RectifyMsg> wrapper1 = new LambdaQueryWrapper<>();
wrapper1.eq(RectifyMsg::getMsgReceiver,orgService.getReginParams().getBusinessInfo().getUserSequenceNbr())
.eq(RectifyMsg::getIsRead,isRead)
.orderByDesc(RectifyMsg::getSendTime);
if(!ValidationUtil.isEmpty(isRead)){
wrapper1.eq(RectifyMsg::getIsRead,isRead);
}
List<RectifyMsg> rectifyMsgList = rectifyMsgMapper.selectList(wrapper1);
List<InstallNoticeMsg> installNoticeMsgList = installNoticeMsgMapper.selectList(wrapper);
List<MsgNoticeDto> msgNoticeDtoList = new ArrayList<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment