修改已读消息报错问题

This commit is contained in:
sh
2025-11-06 18:36:16 +08:00
parent 1a146c3130
commit 87b58c081f

View File

@@ -225,7 +225,7 @@ public class AppNoticeServiceImpl implements IAppNoticeService
Notice parmNotice = notices1.get(0);
Notice notice=new Notice();
notice.setNoticeId(parmNotice.getNoticeId());
notice.setNotReadCount(parmNotice.getNotReadCount()!=null?parmNotice.getNotReadCount() - longs.size():0);
notice.setNotReadCount(parmNotice.getNotReadCount()!=null&&parmNotice.getNotReadCount()!=0?parmNotice.getNotReadCount() - longs.size():0);
if(notice.getNotReadCount()==0){
notice.setIsRead(NoticeUtils.NOTICE_YD);
}