|
|
@ -5,9 +5,11 @@ import com.epmet.dataaggre.constant.DataSourceConstant; |
|
|
|
import com.epmet.dataaggre.dao.resigroup.ResiGroupDao; |
|
|
|
import com.epmet.dataaggre.dao.resigroup.ResiTopicDao; |
|
|
|
import com.epmet.dataaggre.dto.epmetuser.result.UserInfosResultDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.ResiGroupDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.ResiTopicDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.form.CandidateListFormDTO; |
|
|
|
import com.epmet.dataaggre.dto.resigroup.result.CandidateListResultDTO; |
|
|
|
import com.epmet.dataaggre.entity.resigroup.ResiGroupEntity; |
|
|
|
import com.epmet.dataaggre.redis.ResiGroupRedis; |
|
|
|
import com.epmet.dataaggre.service.epmetuser.EpmetUserService; |
|
|
|
import com.epmet.dataaggre.service.resigroup.ResiGroupService; |
|
|
@ -63,12 +65,18 @@ public class ResiGroupServiceImpl implements ResiGroupService { |
|
|
|
List<String> userIds = result.stream().map(m -> m.getUserId()).collect(Collectors.toList()); |
|
|
|
// 查询用户信息【名字 头像】
|
|
|
|
List<UserInfosResultDTO> userInfos = epmetUserService.selectUserInfosByUserIds(userIds); |
|
|
|
//查询小组信息
|
|
|
|
ResiGroupEntity group = resiGroupDao.selectById(formDTO.getGroupId()); |
|
|
|
result.forEach(r -> { |
|
|
|
if (!CollectionUtils.isEmpty(userInfos)){ |
|
|
|
userInfos.forEach(u -> { |
|
|
|
if (r.getUserId().equals(u.getUserId())){ |
|
|
|
r.setHeadPhoto(u.getHeadPhoto()); |
|
|
|
r.setUserShowName(u.getUserShowName()); |
|
|
|
if("branch".equals(group.getGroupType())){ |
|
|
|
r.setUserShowName(u.getRealName()); |
|
|
|
}else { |
|
|
|
r.setUserShowName(u.getUserShowName()); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|