Interface SysDefaultRoleRepository
- All Superinterfaces:
cn.herodotus.engine.data.core.repository.BaseRepository<SysDefaultRole,,String> org.springframework.data.repository.CrudRepository<SysDefaultRole,,String> org.springframework.data.jpa.repository.JpaRepository<SysDefaultRole,,String> org.springframework.data.jpa.repository.JpaSpecificationExecutor<SysDefaultRole>,org.springframework.data.repository.ListCrudRepository<SysDefaultRole,,String> org.springframework.data.repository.ListPagingAndSortingRepository<SysDefaultRole,,String> org.springframework.data.repository.PagingAndSortingRepository<SysDefaultRole,,String> org.springframework.data.repository.query.QueryByExampleExecutor<SysDefaultRole>,org.springframework.data.repository.Repository<SysDefaultRole,String>
public interface SysDefaultRoleRepository
extends cn.herodotus.engine.data.core.repository.BaseRepository<SysDefaultRole,String>
Description: 默认角色管理Repository
- Author:
- : gengwei.zheng
- Date:
- : 2021/7/21 16:08
-
Method Summary
Modifier and TypeMethodDescriptionfindByDefaultId(String defaultId) 根据默认角色ID查询默认角色findByScene(cn.herodotus.engine.assistant.core.enums.AccountType scene) 根据场景查询当前场景对应的默认角色Methods inherited from interface cn.herodotus.engine.data.core.repository.BaseRepository
count, count, deleteById, findAll, findAll, findAll, findAll, findAll, findAll, findById, findOneMethods inherited from interface org.springframework.data.repository.CrudRepository
delete, deleteAll, deleteAll, deleteAllById, existsById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.jpa.repository.JpaSpecificationExecutor
delete, exists, findByMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAllById, saveAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByScene
@QueryHints() SysDefaultRole findByScene(cn.herodotus.engine.assistant.core.enums.AccountType scene) 根据场景查询当前场景对应的默认角色- Parameters:
scene- 场景AccountType- Returns:
SysDefaultRole
-
findByDefaultId
根据默认角色ID查询默认角色- Parameters:
defaultId- 默认角色ID- Returns:
SysDefaultRole
-