|
|
@ -60,33 +60,21 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
initiatorFormDTO.setUserId(issueResult.getUserId()); |
|
|
|
if (!StringUtils.isBlank(issueResult.getUserId())) { |
|
|
|
IssueInitiatorResultDTO initiatorResult = userFeignClient.selectIssueInitiator(initiatorFormDTO).getData(); |
|
|
|
if (initiatorResult == null) { |
|
|
|
issueDetailResult.setIssueInitiator(""); |
|
|
|
} else { |
|
|
|
issueDetailResult.setIssueInitiator(initiatorResult.getIssueInitiator()); |
|
|
|
} |
|
|
|
issueDetailResult.setIssueInitiator(initiatorResult == null ? HallConstat.NULL_CHARACTER_STRING : initiatorResult.getIssueInitiator()); |
|
|
|
} |
|
|
|
//网格名称
|
|
|
|
BelongGridNameFormDTO belongGridName = new BelongGridNameFormDTO(); |
|
|
|
belongGridName.setGridId(issueResult.getGridId()); |
|
|
|
if (!StringUtils.isBlank(issueResult.getGridId())) { |
|
|
|
BelongGridNameResultDTO belongGridNameResult = govOrgFeignClient.getGridNameByGridId(belongGridName).getData(); |
|
|
|
if (belongGridNameResult == null) { |
|
|
|
issueDetailResult.setBelongsGridName(""); |
|
|
|
} else { |
|
|
|
issueDetailResult.setBelongsGridName(belongGridNameResult.getBelongsGridName()); |
|
|
|
} |
|
|
|
issueDetailResult.setBelongsGridName(belongGridNameResult == null ? HallConstat.NULL_CHARACTER_STRING : belongGridNameResult.getBelongsGridName()); |
|
|
|
} |
|
|
|
//话题信息
|
|
|
|
TopicInfoFormDTO topicInfoFormDTO = new TopicInfoFormDTO(); |
|
|
|
topicInfoFormDTO.setTopicId(issueResult.getTopicId()); |
|
|
|
if (!StringUtils.isBlank(issueResult.getTopicId())) { |
|
|
|
TopicInfoDTO topicInfoDTOResult = resiGroupFeignClient.selectDetail(topicInfoFormDTO).getData(); |
|
|
|
if (topicInfoDTOResult == null) { |
|
|
|
issueDetailResult.setTopicInfo(new TopicInfoDTO()); |
|
|
|
} else { |
|
|
|
issueDetailResult.setTopicInfo(topicInfoDTOResult); |
|
|
|
} |
|
|
|
issueDetailResult.setTopicInfo(topicInfoDTOResult == null ? new TopicInfoDTO() : topicInfoDTOResult); |
|
|
|
} |
|
|
|
//判断是否投票
|
|
|
|
CheckVoteFormDTO formDTO = new CheckVoteFormDTO(); |
|
|
@ -131,7 +119,7 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
@Override |
|
|
|
public void support(TokenDto tokenDto, IssueIdFormDTO issueId) { |
|
|
|
VoteFormDTO voteFormDTO = new VoteFormDTO(); |
|
|
|
voteFormDTO.setAttitude("support"); |
|
|
|
voteFormDTO.setAttitude(HallConstat.SUPPORT); |
|
|
|
voteFormDTO.setCreatedBy(tokenDto.getUserId()); |
|
|
|
voteFormDTO.setIssueId(issueId.getIssueId()); |
|
|
|
govIssueFeignClient.vote(voteFormDTO); |
|
|
@ -145,7 +133,7 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
@Override |
|
|
|
public void oppose(TokenDto tokenDto, IssueIdFormDTO issueId) { |
|
|
|
VoteFormDTO voteFormDTO = new VoteFormDTO(); |
|
|
|
voteFormDTO.setAttitude("opposition"); |
|
|
|
voteFormDTO.setAttitude(HallConstat.OPPOSITION); |
|
|
|
voteFormDTO.setCreatedBy(tokenDto.getUserId()); |
|
|
|
voteFormDTO.setIssueId(issueId.getIssueId()); |
|
|
|
govIssueFeignClient.vote(voteFormDTO); |
|
|
|