|
|
@ -10,6 +10,7 @@ import com.epmet.commons.tools.security.user.LoginUserUtil; |
|
|
|
import com.epmet.commons.tools.utils.ConvertUtils; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.constat.HallConstat; |
|
|
|
import com.epmet.dto.IcEventDTO; |
|
|
|
import com.epmet.dto.IssueSuggestionDTO; |
|
|
|
import com.epmet.dto.TopicInfoDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
@ -443,14 +444,26 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
topicInfoDTO.setTopicVoices(rr.getTopicVoices()); |
|
|
|
topicInfoDTO.setPublishedUser(rr.getReleaseUserName()); |
|
|
|
topicInfoDTO.setReleaseTime(rr.getReleaseTime()); |
|
|
|
vi.setTopicInfoDTO(topicInfoDTO); |
|
|
|
vi.setTopicInfo(topicInfoDTO); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
//来源于事件的
|
|
|
|
// 来源于事件的
|
|
|
|
List<String> icEventIds = votingIssueList.stream().filter(t -> t.getSourceType().equals("ic_event")).map(i -> i.getSourceId()).collect(Collectors.toList()); |
|
|
|
if(!CollectionUtils.isEmpty(icEventIds)){ |
|
|
|
// todo 查询事件详情
|
|
|
|
if (!CollectionUtils.isEmpty(icEventIds)) { |
|
|
|
Result<List<IcEventDTO>> eventInfoRes = govProjectOpenFeignClient.batchSelectById(icEventIds); |
|
|
|
if (eventInfoRes.success() && !CollectionUtils.isEmpty(eventInfoRes.getData())) { |
|
|
|
Map<String, IcEventDTO> eventMap = eventInfoRes.getData().stream().collect(Collectors.toMap(IcEventDTO::getId, o -> o, (o1, o2) -> o1)); |
|
|
|
votingIssueList.forEach(vi -> { |
|
|
|
IcEventDTO event = eventMap.get(vi.getSourceId()); |
|
|
|
if (null != event) { |
|
|
|
HallIcEventDTO hallIcEventDTO = new HallIcEventDTO(); |
|
|
|
hallIcEventDTO.setIcEventId(event.getId()); |
|
|
|
hallIcEventDTO.setEventContent(event.getEventContent()); |
|
|
|
vi.setIcEventInfo(hallIcEventDTO); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return votingIssueList; |
|
|
|