From dd69016cdafb370a175901eaa2a687bd2fb6aff6 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 17 Sep 2025 18:30:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=8E=A5=E5=8F=A3=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=B4=A2=E5=AF=8C=E9=AD=85=E5=8A=9B=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../other/inner/model/dto/user/UserProfileDTO.java | 10 ++++++++++ .../app/command/user/query/UserProfileUseQryExe.java | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java index ed710adc..527581d8 100644 --- a/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java +++ b/rc-service/rc-inner-api/other-inner/other-inner-model/src/main/java/com/red/circle/other/inner/model/dto/user/UserProfileDTO.java @@ -124,6 +124,16 @@ public class UserProfileDTO implements Serializable { */ private String regionCode; + /** + * 财富等级. + */ + private Integer wealthLevel; + + /** + * 魅力等级. + */ + private Integer charmLevel; + /** * 系统来源. */ diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java index 835a0c4e..be73cbdb 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/query/UserProfileUseQryExe.java @@ -5,6 +5,7 @@ import com.red.circle.component.redis.service.RedisService; import com.red.circle.framework.core.asserts.ResponseAssert; import com.red.circle.framework.core.response.CommonErrorCode; import com.red.circle.other.app.convertor.user.UserProfileAppConvertor; +import com.red.circle.other.app.dto.clientobject.user.user.UserLevelCO; import com.red.circle.other.app.dto.cmd.user.user.UserProfileQryCmd; import com.red.circle.other.app.service.room.RoomProfileService; import com.red.circle.other.domain.gateway.user.UserProfileGateway; @@ -54,6 +55,13 @@ public class UserProfileUseQryExe { boolean eqRegion = userRegionGateway.checkEqRegion(userProfile.getId(), cmd.requiredReqUserId()); userProfileDTO.setSameRegion(eqRegion); userProfileDTO.setRegionCode(userRegionGateway.getRegionCode(userProfile.getId())); + UserLevelCO userLevelCO = userProfileAppConvertor.toUserLevelCO(userProfileGateway.getUserConsumptionLevel( + cmd.requireReqSysOriginEnum(), cmd.getUserId())); + if (userLevelCO != null) { + userProfileDTO.setWealthLevel(userLevelCO.getWealthLevel()); + userProfileDTO.setCharmLevel(userLevelCO.getCharmLevel()); + } + //放入redis key IN_ROOM:userId v 是roomId 是 放1分钟30秒每次来了都刷新过期时间 String inRoomId = redisService.getString("IN_ROOM:" + cmd.requiredReqUserId()); if (StringUtils.isNotBlank(inRoomId) && eqRegion) {