All Superinterfaces:
cn.herodotus.engine.data.core.repository.BaseRepository<SysUser,String>, org.springframework.data.repository.CrudRepository<SysUser,String>, org.springframework.data.jpa.repository.JpaRepository<SysUser,String>, org.springframework.data.jpa.repository.JpaSpecificationExecutor<SysUser>, org.springframework.data.repository.ListCrudRepository<SysUser,String>, org.springframework.data.repository.ListPagingAndSortingRepository<SysUser,String>, org.springframework.data.repository.PagingAndSortingRepository<SysUser,String>, org.springframework.data.repository.query.QueryByExampleExecutor<SysUser>, org.springframework.data.repository.Repository<SysUser,String>

public interface SysUserRepository extends cn.herodotus.engine.data.core.repository.BaseRepository<SysUser,String>

Description: SysUserRepository

Author:
: gengwei.zheng
Date:
: 2020/4/8 16:14
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    org.springframework.data.jpa.repository.JpaSpecificationExecutor.SpecificationFluentQuery<T extends Object>
  • Method Summary

    Modifier and Type
    Method
    Description
    根据用户ID查找用户
    根据用户名查找SysUser

    Methods inherited from interface cn.herodotus.engine.data.core.repository.BaseRepository

    count, count, deleteById, findAll, findAll, findAll, findAll, findAll, findAll, findById, findOne

    Methods inherited from interface org.springframework.data.repository.CrudRepository

    delete, deleteAll, deleteAll, deleteAllById, existsById, save

    Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

    deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush

    Methods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor

    delete, exists, findAll, findBy

    Methods inherited from interface org.springframework.data.repository.ListCrudRepository

    findAllById, saveAll

    Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

    count, exists, findAll, findBy, findOne
  • Method Details

    • findByUsername

      @QueryHints() SysUser findByUsername(String username)
      根据用户名查找SysUser
      Parameters:
      username - 用户名
      Returns:
      SysUser
    • findByUserId

      @QueryHints() SysUser findByUserId(String userId)
      根据用户ID查找用户
      Parameters:
      userId - 用户ID
      Returns:
      SysUser