diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/query/DynamicFollowQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/query/DynamicFollowQryExe.java index 583a344d..58771f2a 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/query/DynamicFollowQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/dynamic/query/DynamicFollowQryExe.java @@ -79,7 +79,7 @@ public class DynamicFollowQryExe { .filter(userId -> !blackUserSet.contains(userId)) .toList(); PageResult timelines = dynamicTimelineService - .pageByTimeDesc(list, userRegionGateway.getRegionId(cmd.getReqUserId()), + .pageByTimeDesc(list, null, cmd.getPageReq(), Boolean.TRUE); if (CollectionUtils.isEmpty(timelines.getRecords())) { diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/dynamic/impl/DynamicTimelineServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/dynamic/impl/DynamicTimelineServiceImpl.java index e9765e19..46ee6c0b 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/dynamic/impl/DynamicTimelineServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/dynamic/impl/DynamicTimelineServiceImpl.java @@ -81,7 +81,7 @@ public class DynamicTimelineServiceImpl extends return query() .in(DynamicTimeline::getCreateUser, ids) .eq(DynamicTimeline::getOwn, isOwn) - .in(DynamicTimeline::getRegion, region, "") + .in(region != null, DynamicTimeline::getRegion, region, "") .orderByDesc(DynamicTimeline::getCreateTime) .page(pageQuery); }