| 
						
						
							
								
							
						
						
					 | 
					@ -217,13 +217,6 @@ public class GroupInvitationServiceImpl extends BaseServiceImpl<GroupInvitationD | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							linkGroupInfoResultDTO.setGroupInfo(groupInfo); | 
					 | 
					 | 
							linkGroupInfoResultDTO.setGroupInfo(groupInfo); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							//4、记录用户邀请关系
 | 
					 | 
					 | 
							//4、记录用户邀请关系
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							this.saveUserInvitation(groupInvitationDTO,formDTO); | 
					 | 
					 | 
							this.saveUserInvitation(groupInvitationDTO,formDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							UserEnterGridFormDTO userEnterGridFormDTO=new UserEnterGridFormDTO(); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							userEnterGridFormDTO.setCustomerId(groupInfo.getCustomerId()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							userEnterGridFormDTO.setGridId(groupInfo.getGridId()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							Result<UserInfoOnEnterGridResultDTO> result=resiGuideFeignClient.enterGrid(userEnterGridFormDTO); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if(!result.success()){ | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								logger.error("进入网格失败"+result.getMsg()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							return linkGroupInfoResultDTO; | 
					 | 
					 | 
							return linkGroupInfoResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -312,8 +305,24 @@ public class GroupInvitationServiceImpl extends BaseServiceImpl<GroupInvitationD | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						public void accetInvitation(AccetInvitationFormDTO formDTO) { | 
					 | 
					 | 
						public void accetInvitation(AccetInvitationFormDTO formDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							//1、申请是否有效
 | 
					 | 
					 | 
							//1、申请是否有效
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							GroupInvitationDTO groupInvitationDTO=this.checkLinkValid(formDTO.getInvitationId()); | 
					 | 
					 | 
							GroupInvitationDTO groupInvitationDTO=this.checkLinkValid(formDTO.getInvitationId()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							//2、校验是否已经注册居民
 | 
					 | 
					 | 
							//2、进入小组所在的网格
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							ResiGroupDTO resiGroupDTO = resiGroupService.get(groupInvitationDTO.getResiGroupId()); | 
					 | 
					 | 
							ResiGroupDTO resiGroupDTO = resiGroupService.get(groupInvitationDTO.getResiGroupId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							if(null==resiGroupDTO){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								logger.error(String.format("用户同意邀请进组,查询组信息失败。入参:userId【%s】、invitationId【%s】、groupId【%s】。",formDTO.getUserId(),formDTO.getInvitationId(),groupInvitationDTO.getResiGroupId())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								throw new RenException(EpmetErrorCode.LOSE_EFFICACY.getCode()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							UserEnterGridFormDTO userEnterGridFormDTO=new UserEnterGridFormDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							userEnterGridFormDTO.setCustomerId(resiGroupDTO.getCustomerId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							userEnterGridFormDTO.setGridId(resiGroupDTO.getGridId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							Result<UserInfoOnEnterGridResultDTO> result=resiGuideFeignClient.enterGrid(userEnterGridFormDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							if(!result.success()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								logger.error(String.format("用户同意邀请进组,进入网格失败。入参:userId【%s】、invitationId【%s】、groupId【%s】、customerId【%s】、gridId【%s】", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
										formDTO.getUserId(),formDTO.getInvitationId(), | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
										groupInvitationDTO.getResiGroupId()), | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
										resiGroupDTO.getCustomerId(),resiGroupDTO.getGridId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								logger.error(String.format("用户同意邀请进组,进入网格失败。调用enterGrid接口返回",result.toString())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
							//3、校验是否已经注册居民
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							UserRoleDTO userRoleDTO=new UserRoleDTO(); | 
					 | 
					 | 
							UserRoleDTO userRoleDTO=new UserRoleDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (null != resiGroupDTO) { | 
					 | 
					 | 
							if (null != resiGroupDTO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								//获取当前用户所有角色
 | 
					 | 
					 | 
								//获取当前用户所有角色
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |