diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java index f42eb380..e9faf39c 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/gateway/user/UserRunProfileTransportGatewayImpl.java @@ -336,9 +336,9 @@ public class UserRunProfileTransportGatewayImpl implements UserRunProfileTranspo Set cpUserIds = cpRelationshipList.stream() .map(CpRelationship::getCpUserId) .collect(Collectors.toSet()); - List cpUserProfiles = userRunProfileService.listByIds(cpUserIds); - Map cpUserProfileMap = cpUserProfiles.stream() - .collect(Collectors.toMap(UserRunProfile::getId, Function.identity())); + List cpUserProfiles = baseInfoService.listByUserId(cpUserIds); + Map cpUserProfileMap = cpUserProfiles.stream() + .collect(Collectors.toMap(BaseInfo::getId, Function.identity())); // 批量获取CP值 Set cpValIds = cpRelationshipList.stream() @@ -349,7 +349,7 @@ public class UserRunProfileTransportGatewayImpl implements UserRunProfileTranspo // 组装CP列表 List cpList = cpRelationshipList.stream() .map(cpRelationship -> { - UserRunProfile cpUser = cpUserProfileMap.get(cpRelationship.getCpUserId()); + BaseInfo cpUser = cpUserProfileMap.get(cpRelationship.getCpUserId()); if (cpUser == null) { return null; }