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) {