Package net.risesoft.y9public.repository
Interface Y9logUserLoginInfoRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Y9logUserLoginInfo,String>,org.springframework.data.jpa.repository.JpaRepository<Y9logUserLoginInfo,String>,org.springframework.data.jpa.repository.JpaSpecificationExecutor<Y9logUserLoginInfo>,org.springframework.data.repository.PagingAndSortingRepository<Y9logUserLoginInfo,String>,org.springframework.data.repository.query.QueryByExampleExecutor<Y9logUserLoginInfo>,org.springframework.data.repository.Repository<Y9logUserLoginInfo,String>
@Transactional(value="rsPublicTransactionManager", readOnly=true) public interface Y9logUserLoginInfoRepository extends org.springframework.data.jpa.repository.JpaRepository<Y9logUserLoginInfo,String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<Y9logUserLoginInfo>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longcountByUserHostIpAndSuccess(String userHostIp, String success)longcountByUserHostIpAndSuccessAndUserNameContaining(String userHostIp, String success, String userName)org.springframework.data.domain.Page<Y9logUserLoginInfo>findBySuccessAndUserHostIpAndUserId(String success, String userHostIp, String userId, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<Y9logUserLoginInfo>findByTenantIdAndManagerLevel(String tenantId, String managerLevel, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<Y9logUserLoginInfo>findByTenantIdAndSuccessAndUserHostIpAndUserId(String tenantId, String success, String userHostIp, String userId, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<Y9logUserLoginInfo>findByUserHostIpAndSuccess(String userHostIp, String success, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<Object[]>findByUserHostIpAndSuccessAndUserNameLike(String userHostIp, String success, String userName, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<Object[]>findByUserHostIpAndSuccessAndUserNameLikeAndTenantId(String userHostIp, String success, String userName, String tenantId, org.springframework.data.domain.Pageable pageable)List<Y9logUserLoginInfo>findByUserId(String userId)Set<Y9logUserLoginInfo>findByUserIdAndSuccess(String userId, String success)org.springframework.data.domain.Page<Object[]>findDistinctByUserHostIpAndSuccess(String userHostIp, String success, org.springframework.data.domain.Pageable pageable)org.springframework.data.domain.Page<Object[]>findDistinctByUserHostIpAndSuccessAndTenantId(String userHostIp, String success, String tenantId, org.springframework.data.domain.Pageable pageable)List<Map<String,Object>>findDistinctByUserHostIpLike(String cip)List<Map<String,Object>>findDistinctByUserHostIpLikeAndTenantId(String cip, String tenantId)List<Map<String,Object>>findDistinctUserHostIpByUserIdAndLoginTime(String userId, Date startTime, Date endTime)List<Map<String,Object>>findDistinctUserHostIpCountByUserHostIpLike(String cip)根据ip的前三位,获得终端ip的登陆次数。List<Map<String,Object>>findDistinctUserHostIpCountByUserHostIpLikeAndTenantId(String cip, String tenantId)Y9logUserLoginInfofindTopByTenantIdAndUserIdOrderByLoginTimeDesc(String tenantId, String userId)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, getReferenceById, saveAll, saveAllAndFlush, saveAndFlush
-
Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
count, exists, findAll, findAll, findAll, findOne
-
-
-
-
Method Detail
-
countByUserHostIpAndSuccessAndUserNameContaining
long countByUserHostIpAndSuccessAndUserNameContaining(String userHostIp, String success, String userName)
-
findBySuccessAndUserHostIpAndUserId
org.springframework.data.domain.Page<Y9logUserLoginInfo> findBySuccessAndUserHostIpAndUserId(String success, String userHostIp, String userId, org.springframework.data.domain.Pageable pageable)
-
findByTenantIdAndManagerLevel
org.springframework.data.domain.Page<Y9logUserLoginInfo> findByTenantIdAndManagerLevel(String tenantId, String managerLevel, org.springframework.data.domain.Pageable pageable)
-
findByTenantIdAndSuccessAndUserHostIpAndUserId
org.springframework.data.domain.Page<Y9logUserLoginInfo> findByTenantIdAndSuccessAndUserHostIpAndUserId(String tenantId, String success, String userHostIp, String userId, org.springframework.data.domain.Pageable pageable)
-
findByUserHostIpAndSuccess
org.springframework.data.domain.Page<Y9logUserLoginInfo> findByUserHostIpAndSuccess(String userHostIp, String success, org.springframework.data.domain.Pageable pageable)
-
findByUserHostIpAndSuccessAndUserNameLike
@Query("select u.userId,u.userName,u.userHostIp,COUNT(*) from Y9logUserLoginInfo u where u.userHostIp = ?1 and u.success = ?2 and u.userName like %?3% group by u.userId,u.userName,u.userHostIp") org.springframework.data.domain.Page<Object[]> findByUserHostIpAndSuccessAndUserNameLike(String userHostIp, String success, String userName, org.springframework.data.domain.Pageable pageable)
-
findByUserHostIpAndSuccessAndUserNameLikeAndTenantId
@Query("select u.userId,u.userName,u.userHostIp,COUNT(*) from Y9logUserLoginInfo u where u.userHostIp = ?1 and u.success = ?2 and u.userName like %?3% AND tenantId =?4 group by u.userId,u.userName,u.userHostIp") org.springframework.data.domain.Page<Object[]> findByUserHostIpAndSuccessAndUserNameLikeAndTenantId(String userHostIp, String success, String userName, String tenantId, org.springframework.data.domain.Pageable pageable)
-
findByUserId
List<Y9logUserLoginInfo> findByUserId(String userId)
-
findByUserIdAndSuccess
Set<Y9logUserLoginInfo> findByUserIdAndSuccess(String userId, String success)
-
findDistinctByUserHostIpAndSuccess
@Query("select u.userId,u.userName,u.userHostIp,COUNT(u) from Y9logUserLoginInfo u where u.userHostIp = ?1 and u.success = ?2 group by u.userId,u.userName,u.userHostIp") org.springframework.data.domain.Page<Object[]> findDistinctByUserHostIpAndSuccess(String userHostIp, String success, org.springframework.data.domain.Pageable pageable)
-
findDistinctByUserHostIpAndSuccessAndTenantId
@Query("select u.userId,u.userName,u.userHostIp,COUNT(u) from Y9logUserLoginInfo u where u.userHostIp = ?1 and u.success = ?2 AND tenantId =?3 group by u.userId,u.userName,u.userHostIp") org.springframework.data.domain.Page<Object[]> findDistinctByUserHostIpAndSuccessAndTenantId(String userHostIp, String success, String tenantId, org.springframework.data.domain.Pageable pageable)
-
findDistinctByUserHostIpLike
@Query("select DISTINCT(u.userHostIp) as userHostIp ,count(*) as count from Y9logUserLoginInfo u where u.userHostIp LIKE ?1% group by u.userHostIp") List<Map<String,Object>> findDistinctByUserHostIpLike(String cip)
-
findDistinctByUserHostIpLikeAndTenantId
@Query("select DISTINCT(u.userHostIp) as userHostIp ,count(*) as count from Y9logUserLoginInfo u where u.userHostIp LIKE ?1% AND tenantId =?2 group by u.userHostIp") List<Map<String,Object>> findDistinctByUserHostIpLikeAndTenantId(String cip, String tenantId)
-
findDistinctUserHostIpByUserIdAndLoginTime
@Query("select DISTINCT(u.userHostIp) as userHostIp ,count(*) as count from Y9logUserLoginInfo u where u.userId=?1 and u.loginTime>=?2 and u.loginTime<=?3 group by u.userHostIp") List<Map<String,Object>> findDistinctUserHostIpByUserIdAndLoginTime(String userId, Date startTime, Date endTime)
-
findDistinctUserHostIpCountByUserHostIpLike
@Query("select userHostIp as userHostIp , count(userHostIp) as count from Y9logUserLoginInfo where userHostIp LIKE ?1% group by userHostIp") List<Map<String,Object>> findDistinctUserHostIpCountByUserHostIpLike(String cip)根据ip的前三位,获得终端ip的登陆次数。
-
findDistinctUserHostIpCountByUserHostIpLikeAndTenantId
@Query("select userHostIp as userHostIp , count(userHostIp) as count from Y9logUserLoginInfo where userHostIp LIKE ?1% AND tenantId =?2 group by userHostIp") List<Map<String,Object>> findDistinctUserHostIpCountByUserHostIpLikeAndTenantId(String cip, String tenantId)
-
findTopByTenantIdAndUserIdOrderByLoginTimeDesc
Y9logUserLoginInfo findTopByTenantIdAndUserIdOrderByLoginTimeDesc(String tenantId, String userId)
-
-