diff --git a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java index 53552e733a..c0d202ba8e 100644 --- a/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java +++ b/epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java @@ -877,12 +877,20 @@ public class ResiTopicServiceImpl extends BaseServiceImpl NumConstant.ZERO){ hiddenDetailDTO.setHiddenReason(String.format("%s%s",ModuleConstant.HIDDEN_TOPIC_REASON_PREFIX,records.get(0).getOperationReason())); hiddenDetailDTO.setHiddenDateTime(records.get(0).getCreatedTime().getTime()/NumConstant.ONE_THOUSAND); - ResiGroupMemberInfoRedisDTO hiddenBy = + List userIds = new ArrayList<>(); + userIds.add(records.get(0).getCreatedBy()); + List userInfos = disPoseUserInfo(group.getGroupType(), userIds); + if (CollectionUtils.isEmpty(userInfos)){ + throw new RenException("未查询到用户信息"); + } + hiddenDetailDTO.setOperateUserName(userInfos.get(NumConstant.ZERO).getUserId()); + hiddenDetailDTO.setOperateUserHeadPhoto(userInfos.get(NumConstant.ZERO).getReleaseUserHeadPhoto()); + /*ResiGroupMemberInfoRedisDTO hiddenBy = resiGroupMemberRedis.get(topicDetail.getGroupId(),records.get(0).getCreatedBy()); if (null != hiddenBy && StringUtils.isNotBlank(hiddenBy.getUserShowName())) { hiddenDetailDTO.setOperateUserName(hiddenBy.getUserShowName()); hiddenDetailDTO.setOperateUserHeadPhoto(hiddenBy.getUserHeadPhoto()); - } + }*/ resultDTO.setHiddenDetail(hiddenDetailDTO); } }