Interface Y9logUserLoginInfoRepository

    • Method Detail

      • countByUserHostIpAndSuccess

        long countByUserHostIpAndSuccess​(String userHostIp,
                                         String success)
      • 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)
      • 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)