Browse Source

bug修改

master
sunyuchao 4 years ago
parent
commit
0459b8a686
  1. 2
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicCommentServiceImpl.java
  2. 4
      epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

2
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicCommentServiceImpl.java

@ -338,7 +338,7 @@ public class ResiTopicCommentServiceImpl extends BaseServiceImpl<ResiTopicCommen
setCacheUserInfo(topic.getGroupId(),comments);
//支部小组人员返真实姓名
ResiGroupEntity entity = resiGroupDao.selectById(topic.getGroupId());
if("".equals(entity.getGroupType())){
if("branch".equals(entity.getGroupType())){
List<String> userIds = comments.stream().map(m -> m.getUserId()).distinct().collect(Collectors.toList());
List<UserInfoResultDTO> userInfos = resiTopicService.disPoseUserInfo(entity.getGroupType(), userIds);
comments.forEach(item -> {

4
epmet-module/resi-group/resi-group-server/src/main/java/com/epmet/modules/topic/service/impl/ResiTopicServiceImpl.java

@ -1380,7 +1380,9 @@ public class ResiTopicServiceImpl extends BaseServiceImpl<ResiTopicDao, ResiTopi
resultDTOList.forEach(re->{
if(topicInfo.getPublishedUser().equals(re.getUserId())){
//话题发起人
topicInfo.setPublishedUser(re.getRealName() == null ? "" : re.getRealName());
String street = re.getStreet() == null ? "" : re.getStreet() + "-";
String realName = re.getRealName() == null ? "" : re.getRealName();
topicInfo.setPublishedUser(street + realName);
}
});
} else {

Loading…
Cancel
Save