|
@@ -357,6 +357,7 @@ public class NewsController {
|
|
|
.eq(NewsRelation::getUserId, StpUtil.getLoginIdAsLong())
|
|
.eq(NewsRelation::getUserId, StpUtil.getLoginIdAsLong())
|
|
|
.eq(News::getTypeId, typeId)
|
|
.eq(News::getTypeId, typeId)
|
|
|
.eq(NewsRelation::getReadMark, 0)
|
|
.eq(NewsRelation::getReadMark, 0)
|
|
|
|
|
+ .gt(News::getSendEndDate, LocalDateTime.now())
|
|
|
);
|
|
);
|
|
|
newsCountTypeVo.setTypeId(typeId);
|
|
newsCountTypeVo.setTypeId(typeId);
|
|
|
newsCountTypeVo.setTotal(notReadCount);
|
|
newsCountTypeVo.setTotal(notReadCount);
|
|
@@ -380,6 +381,7 @@ public class NewsController {
|
|
|
.eq(News::getStatus, 2)
|
|
.eq(News::getStatus, 2)
|
|
|
.eq(NewsRelation::getUserId, StpUtil.getLoginIdAsLong())
|
|
.eq(NewsRelation::getUserId, StpUtil.getLoginIdAsLong())
|
|
|
.eq(News::getTypeId, typeId)
|
|
.eq(News::getTypeId, typeId)
|
|
|
|
|
+ .gt(News::getSendEndDate, LocalDateTime.now())
|
|
|
.eq(NewsRelation::getReadMark, 0)
|
|
.eq(NewsRelation::getReadMark, 0)
|
|
|
);
|
|
);
|
|
|
|
|
|