修改已读消息报错问题
This commit is contained in:
@@ -225,7 +225,7 @@ public class AppNoticeServiceImpl implements IAppNoticeService
|
|||||||
Notice parmNotice = notices1.get(0);
|
Notice parmNotice = notices1.get(0);
|
||||||
Notice notice=new Notice();
|
Notice notice=new Notice();
|
||||||
notice.setNoticeId(parmNotice.getNoticeId());
|
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){
|
if(notice.getNotReadCount()==0){
|
||||||
notice.setIsRead(NoticeUtils.NOTICE_YD);
|
notice.setIsRead(NoticeUtils.NOTICE_YD);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user