diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/status/impl/OnlineUserServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/status/impl/OnlineUserServiceImpl.java index c99a1903..ef13ac95 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/status/impl/OnlineUserServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/mongo/service/user/status/impl/OnlineUserServiceImpl.java @@ -156,7 +156,8 @@ public class OnlineUserServiceImpl implements OnlineUserService { @Override public Long count(OnlineCountQryCmd query) { - Criteria criteria = Criteria.where("id").gt(0); + Criteria criteria = Criteria.where("id").gt(0) + .and("expiredTime").gte(TimestampUtils.now());; if (Objects.nonNull(query)) { if (Objects.nonNull(query.getPriority())) { criteria.and("priority").is(query.getPriority());