From 34d4a6f2db9c21452513f5de73f6aebd58809f65 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 7 Apr 2026 19:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E7=94=A8=E6=88=B7=E6=95=B0?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit e5124b4ba158cfa7d868e3fc3c0c5ade3fdec197) --- .../mongo/service/user/status/impl/OnlineUserServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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());