|
|
@@ -490,6 +490,8 @@ public class NewsController {
|
|
|
.eq(News::getStatus, 2)
|
|
|
.eq(NewsRelation::getUserId, StpUtil.getLoginIdAsLong())
|
|
|
.eq(NewsRelation::getReadMark, 0)
|
|
|
+ .eq(News::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
+ .eq(News::getEnabledMark, EnabledMark.ENABLED.getCode())
|
|
|
);
|
|
|
|
|
|
//公告发给非全体的
|
|
|
@@ -500,6 +502,8 @@ public class NewsController {
|
|
|
.eq(SystemUpdateMessage::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
.eq(SystemUpdateMessage::getStatus, 1)
|
|
|
.eq(SystemUpdateMessageNotice::getStatus, 0)
|
|
|
+ .eq(SystemUpdateMessageNotice::getDeleteMark, DeleteMark.NODELETE.getCode())
|
|
|
+ .eq(SystemUpdateMessageNotice::getEnabledMark, EnabledMark.ENABLED.getCode())
|
|
|
);
|
|
|
|
|
|
Long notReadCount = notReadCountNews + systemUpdateMessageCount;
|