| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -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,25 +218,26 @@ public class IssueServiceImpl implements IssueService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        GridIdFormDTO gridIdFormDTO = new GridIdFormDTO(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        gridIdFormDTO.setGridId(gridId.getGridId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        gridIdFormDTO.setUserId(tokenDto.getUserId()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<CheckJoinTeamResultDTO> checkJoinTeam = resiGroupFeignClient.checkjointeam(gridIdFormDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (!checkJoinTeam.success()){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw new RenException("查询校验用户是否加入小组失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        CheckJoinTeamResultDTO check = checkJoinTeam.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        //未加入小组
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (check.getVoteAuthorization()==false){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            voteResultDTOResult.setVoteFlag(false); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            voteResultDTOResult.setVoteAuthorization(check.getVoteAuthorization()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            voteResultDTOResult.setOppositionCount(NumConstant.ZERO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            voteResultDTOResult.setSupportCount(NumConstant.ZERO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Result<VoteResultDTO> voteResult = govIssueFeignClient.voteCount(issueId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (!voteResult.success()){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                throw new RenException("查询表决中议题详情——支持、反对数失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (issueId.getSourceType().equals("resi_topic")){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            Result<CheckJoinTeamResultDTO> checkJoinTeam = resiGroupFeignClient.checkjointeam(gridIdFormDTO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (!checkJoinTeam.success()){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                throw new RenException("查询校验用户是否加入小组失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            CheckJoinTeamResultDTO check = checkJoinTeam.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            //未加入小组
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (check.getVoteAuthorization()==false){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                voteResultDTOResult.setVoteFlag(false); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                voteResultDTOResult.setVoteAuthorization(check.getVoteAuthorization()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                voteResultDTOResult.setOppositionCount(NumConstant.ZERO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                voteResultDTOResult.setSupportCount(NumConstant.ZERO); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            voteResultDTOResult = voteResult.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            voteResultDTOResult.setVoteAuthorization(check.getVoteAuthorization()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return voteResultDTOResult; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        Result<VoteResultDTO> voteResult = govIssueFeignClient.voteCount(issueId); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (!voteResult.success()){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            throw new RenException("查询表决中议题详情——支持、反对数失败"); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        voteResultDTOResult = voteResult.getData(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return voteResultDTOResult; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |