|
|
@ -549,16 +549,17 @@ public class IssueVoteStatisticalServiceImpl extends BaseServiceImpl<IssueVoteSt |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public List<MyPartIssuesResultDTO> myPartIssues(MyPartIssuesFormDTO myPartIssuesFormDTO) { |
|
|
|
List<MyPartIssuesResultDTO> myPartIssuesResult = issueVoteDetailDao.myPartIssues(myPartIssuesFormDTO.getUserId()); |
|
|
|
List<MyPartIssuesResultDTO> myPartIssuesResult = new ArrayList<>(); |
|
|
|
MyPartIssueFormDTO formDTO = new MyPartIssueFormDTO(); |
|
|
|
formDTO.setUserId(myPartIssuesFormDTO.getUserId()); |
|
|
|
Result<MyPartIssueResultDTO> myPartIssueResult = resiGroupOpenFeignClient.selectMyPartTopic(formDTO); |
|
|
|
if (!myPartIssueResult.success()){ |
|
|
|
throw new RenException("查询我评论过的话题失败......"); |
|
|
|
} |
|
|
|
myPartIssuesResult = issueVoteDetailDao.myPartIssues(myPartIssuesFormDTO.getUserId(), myPartIssueResult.getData().getTopicIds()); |
|
|
|
if (!CollectionUtils.isEmpty(myPartIssueResult.getData().getTopicIds())){ |
|
|
|
List<MyPartIssuesResultDTO> myPartIssuesResultDTOS = issueVoteDetailDao.myPartIssuesByTopicId(myPartIssueResult.getData().getTopicIds()); |
|
|
|
myPartIssuesResult.addAll(myPartIssuesResultDTOS); |
|
|
|
List<MyPartIssuesResultDTO> myPartIssues = issueVoteDetailDao.myPartIssuesByTopicId(myPartIssueResult.getData().getTopicIds()); |
|
|
|
myPartIssuesResult.addAll(myPartIssues); |
|
|
|
} |
|
|
|
if (CollectionUtils.isEmpty(myPartIssuesResult)){ |
|
|
|
return new ArrayList<>(); |
|
|
|