|
|
@ -22,6 +22,7 @@ import com.epmet.resi.group.dto.topic.form.TopicDetailBatchFormDTO; |
|
|
|
import com.epmet.resi.group.dto.topic.result.ResiTopicDetailResultDTO; |
|
|
|
import com.epmet.resi.group.feign.ResiGroupOpenFeignClient; |
|
|
|
import com.epmet.service.IssueService; |
|
|
|
import com.epmet.util.ModuleConstant; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.slf4j.Logger; |
|
|
|
import org.slf4j.LoggerFactory; |
|
|
@ -217,6 +218,7 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
GridIdFormDTO gridIdFormDTO = new GridIdFormDTO(); |
|
|
|
gridIdFormDTO.setGridId(gridId.getGridId()); |
|
|
|
gridIdFormDTO.setUserId(tokenDto.getUserId()); |
|
|
|
if (issueId.getSourceType().equals("resi_topic")){ |
|
|
|
Result<CheckJoinTeamResultDTO> checkJoinTeam = resiGroupFeignClient.checkjointeam(gridIdFormDTO); |
|
|
|
if (!checkJoinTeam.success()){ |
|
|
|
throw new RenException("查询校验用户是否加入小组失败"); |
|
|
@ -228,14 +230,14 @@ public class IssueServiceImpl implements IssueService { |
|
|
|
voteResultDTOResult.setVoteAuthorization(check.getVoteAuthorization()); |
|
|
|
voteResultDTOResult.setOppositionCount(NumConstant.ZERO); |
|
|
|
voteResultDTOResult.setSupportCount(NumConstant.ZERO); |
|
|
|
}else { |
|
|
|
} |
|
|
|
return voteResultDTOResult; |
|
|
|
} |
|
|
|
Result<VoteResultDTO> voteResult = govIssueFeignClient.voteCount(issueId); |
|
|
|
if (!voteResult.success()){ |
|
|
|
throw new RenException("查询表决中议题详情——支持、反对数失败"); |
|
|
|
} |
|
|
|
voteResultDTOResult = voteResult.getData(); |
|
|
|
voteResultDTOResult.setVoteAuthorization(check.getVoteAuthorization()); |
|
|
|
} |
|
|
|
return voteResultDTOResult; |
|
|
|
} |
|
|
|
|
|
|
|