| 
					
				 | 
			
			
				@ -6,6 +6,7 @@ import org.springframework.data.jpa.repository.Modifying; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.jpa.repository.Query; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.repository.PagingAndSortingRepository; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				/** 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -20,6 +21,6 @@ public interface GcTokenDao extends PagingAndSortingRepository<GcToken, Long>, J 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Query("from GcToken where accesstoken=?1") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    GcToken findByToken(String token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Query("from GcToken where appid=?1 and outTime >= now()") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    List<GcToken> findByAppId(String token); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Query("from GcToken where appid=?1 and outTime >= ?2 and del=1 ") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    List<GcToken> findByAppId(String token, Date now); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |