|  |  | @ -328,7 +328,8 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou | 
			
		
	
		
			
				
					|  |  |  | 		//6、群初始统计记录
 | 
			
		
	
		
			
				
					|  |  |  | 		UserRoleDTO userRoleDTO = this.checkPartyMemberOrWarmHeated(applyCreateGroupFormDTO.getApp(), | 
			
		
	
		
			
				
					|  |  |  | 									applyCreateGroupFormDTO.getUserId(), | 
			
		
	
		
			
				
					|  |  |  | 									applyCreateGroupFormDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 									applyCreateGroupFormDTO.getCustomerId(), | 
			
		
	
		
			
				
					|  |  |  | 									applyCreateGroupFormDTO.getGridId()); | 
			
		
	
		
			
				
					|  |  |  | 		ResiGroupStatisticalDTO resiGroupStatisticalDTO=new ResiGroupStatisticalDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		resiGroupStatisticalDTO.setResiGroupId(resiGroupEntity.getId()); | 
			
		
	
		
			
				
					|  |  |  | 		resiGroupStatisticalDTO.setTotalMembers(NumConstant.ONE); | 
			
		
	
	
		
			
				
					|  |  | @ -416,7 +417,8 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		UserRoleDTO userRoleDTO = this.checkPartyMemberOrWarmHeated(initApplyCreatedGroupFormDTO.getApp(), | 
			
		
	
		
			
				
					|  |  |  | 				initApplyCreatedGroupFormDTO.getUserId(), | 
			
		
	
		
			
				
					|  |  |  | 				initApplyCreatedGroupFormDTO.getCustomerId()); | 
			
		
	
		
			
				
					|  |  |  | 				initApplyCreatedGroupFormDTO.getCustomerId(), | 
			
		
	
		
			
				
					|  |  |  | 				initApplyCreatedGroupFormDTO.getGridId()); | 
			
		
	
		
			
				
					|  |  |  | 		if (!NumConstant.ONE_STR.equals(userRoleDTO.getPartymemberFlag()) && !NumConstant.ONE_STR.equals(userRoleDTO.getWarmHeartedFlag())) { | 
			
		
	
		
			
				
					|  |  |  | 			return new Result().error(EpmetErrorCode.CANNOT_CREATE_GROUP.getCode(),EpmetErrorCode.CANNOT_CREATE_GROUP.getMsg()); | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
	
		
			
				
					|  |  | @ -490,18 +492,20 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou | 
			
		
	
		
			
				
					|  |  |  | 	 * @param app | 
			
		
	
		
			
				
					|  |  |  | 	 * @param userId | 
			
		
	
		
			
				
					|  |  |  | 	 * @param customerId | 
			
		
	
		
			
				
					|  |  |  | 	 * @param gridId | 
			
		
	
		
			
				
					|  |  |  | 	 * @return boolean | 
			
		
	
		
			
				
					|  |  |  | 	 * @Author yinzuomei | 
			
		
	
		
			
				
					|  |  |  | 	 * @Description 用户拥有党员或者热心居民标签返回true, 没有权限返回false | 
			
		
	
		
			
				
					|  |  |  | 	 * @Date 2020/3/30 16:33 | 
			
		
	
		
			
				
					|  |  |  | 	 **/ | 
			
		
	
		
			
				
					|  |  |  | 	@Override | 
			
		
	
		
			
				
					|  |  |  | 	public UserRoleDTO checkPartyMemberOrWarmHeated(String app, String userId, String customerId) { | 
			
		
	
		
			
				
					|  |  |  | 	public UserRoleDTO checkPartyMemberOrWarmHeated(String app, String userId, String customerId, String gridId) { | 
			
		
	
		
			
				
					|  |  |  | 		UserRoleDTO userRoleDTO = new UserRoleDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		UserRoleFormDTO userRoleFormDTO = new UserRoleFormDTO(); | 
			
		
	
		
			
				
					|  |  |  | 		userRoleFormDTO.setApp(app); | 
			
		
	
		
			
				
					|  |  |  | 		userRoleFormDTO.setCustomerId(customerId); | 
			
		
	
		
			
				
					|  |  |  | 		userRoleFormDTO.setUserId(userId); | 
			
		
	
		
			
				
					|  |  |  | 		userRoleFormDTO.setGridId(gridId); | 
			
		
	
		
			
				
					|  |  |  | 		Result<List<UserRoleResultDTO>> userRoleListResult = epmetUserFeignClient.getUserRoleInfo(userRoleFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 		if (!userRoleListResult.success()) { | 
			
		
	
		
			
				
					|  |  |  | 			logger.info("获取用户角色feign调用失败" + userRoleListResult.getMsg()); | 
			
		
	
	
		
			
				
					|  |  | 
 |