|  |  | @ -40,6 +40,7 @@ import com.epmet.dto.form.*; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.UserResiInfoResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.dto.result.UserRoleResultDTO; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.EpmetMessageOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.feign.EpmetUserOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.constant.UserMessageConstant; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.feign.EpmetMessageFeignClient; | 
			
		
	
		
			
				
					|  |  |  | import com.epmet.modules.feign.EpmetUserFeignClient; | 
			
		
	
	
		
			
				
					|  |  | @ -147,6 +148,9 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private LoginUserUtil loginUserUtil; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	@Autowired | 
			
		
	
		
			
				
					|  |  |  | 	private EpmetUserOpenFeignClient epmetUserOpenFeignClient; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 	@Value("${openapi.scan.server.url}") | 
			
		
	
		
			
				
					|  |  |  | 	private String scanApiUrl; | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | @ -365,6 +369,16 @@ public class ResiGroupServiceImpl extends BaseServiceImpl<ResiGroupDao, ResiGrou | 
			
		
	
		
			
				
					|  |  |  | 	@Transactional(rollbackFor = Exception.class) | 
			
		
	
		
			
				
					|  |  |  | 	@Override | 
			
		
	
		
			
				
					|  |  |  | 	public void applyCreateGroup(ApplyCreateGroupFormDTO applyCreateGroupFormDTO) { | 
			
		
	
		
			
				
					|  |  |  | 		// 查看是不是支部小组,在查询创建者是不是党员,不是党员就不走下面逻辑了
 | 
			
		
	
		
			
				
					|  |  |  | 		if (applyCreateGroupFormDTO.getGroupType().equals(ModuleConstant.GROUP_TYPE_BRANCH)){ | 
			
		
	
		
			
				
					|  |  |  | 			Result<Boolean> booleanResult = epmetUserOpenFeignClient.selectIsPartyMemberByUserId(applyCreateGroupFormDTO.getUserId()); | 
			
		
	
		
			
				
					|  |  |  | 			if (!booleanResult.success()){ | 
			
		
	
		
			
				
					|  |  |  | 				throw new RenException(ModuleConstant.IS_PARTY_MEMBER_ERR); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 			if (!booleanResult.getData()){ | 
			
		
	
		
			
				
					|  |  |  | 				throw new RenException(EpmetErrorCode.PARTY_MEMBER_CREATE_BRANCH_GROUP.getCode()); | 
			
		
	
		
			
				
					|  |  |  | 			} | 
			
		
	
		
			
				
					|  |  |  | 		} | 
			
		
	
		
			
				
					|  |  |  | 		//1、校验是否同名
 | 
			
		
	
		
			
				
					|  |  |  | 		List<ResiGroupEntity> resiGroupEntityList = this.getResiGroupEntityList(applyCreateGroupFormDTO); | 
			
		
	
		
			
				
					|  |  |  | 		if (null != resiGroupEntityList && resiGroupEntityList.size() > 0) { | 
			
		
	
	
		
			
				
					|  |  | 
 |