From b288fe86a9931e75b2650091b45127049bb394b7 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 12 May 2026 19:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E6=88=90=E5=91=98=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=20=E8=B4=A2=E5=AF=8C=E9=AD=85=E5=8A=9B=E7=AD=89?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../room/query/RoomSearchMemberQryExe.java | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/query/RoomSearchMemberQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/query/RoomSearchMemberQryExe.java index 9d914701..c41818f6 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/query/RoomSearchMemberQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/query/RoomSearchMemberQryExe.java @@ -1,10 +1,12 @@ package com.red.circle.other.app.command.room.query; import com.google.common.collect.Lists; +import com.red.circle.common.business.core.enums.SysOriginPlatformEnum; import com.red.circle.other.app.convertor.user.UserProfileAppConvertor; import com.red.circle.other.app.dto.clientobject.room.RoomMemberUserCO; import com.red.circle.other.app.dto.cmd.room.RoomMemberQryCmd; import com.red.circle.other.domain.gateway.user.UserProfileGateway; +import com.red.circle.other.domain.model.user.UserConsumptionLevel; import com.red.circle.other.infra.database.rds.entity.live.RoomMember; import com.red.circle.other.infra.database.rds.service.live.RoomMemberService; import com.red.circle.other.inner.model.dto.user.UserProfileDTO; @@ -80,10 +82,18 @@ public class RoomSearchMemberQryExe { return Lists.newArrayList(); } - return roomMembers.stream().map(roomMember -> new RoomMemberUserCO() - .setId(roomMember.getId()) - .setRoles(roomMember.getRoles()) - .setUserProfile(userProfileMap.get(roomMember.getUserId()))).toList(); + return roomMembers.stream().map(roomMember -> { + UserProfileDTO userProfileDTO = userProfileMap.get(roomMember.getUserId()); + if (Objects.nonNull(userProfileDTO)) { + UserConsumptionLevel userConsumptionLevel = userProfileGateway.getUserConsumptionLevel(SysOriginPlatformEnum.ATYOU, userProfileDTO.getId()); + userProfileDTO.setWealthLevel(userConsumptionLevel.getWealthLevel()); + userProfileDTO.setCharmLevel(userConsumptionLevel.getCharmLevel()); + } + return new RoomMemberUserCO() + .setId(roomMember.getId()) + .setRoles(roomMember.getRoles()) + .setUserProfile(userProfileDTO); + }).toList(); } private List getHomeownerAndManager(Long roomId) {