Package com.bytedesk.call.agent
Interface CallAgentRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<CallAgentEntity,
,Long> org.springframework.data.jpa.repository.JpaRepository<CallAgentEntity,
,Long> org.springframework.data.repository.ListCrudRepository<CallAgentEntity,
,Long> org.springframework.data.repository.ListPagingAndSortingRepository<CallAgentEntity,
,Long> org.springframework.data.repository.PagingAndSortingRepository<CallAgentEntity,
,Long> org.springframework.data.repository.query.QueryByExampleExecutor<CallAgentEntity>
,org.springframework.data.repository.Repository<CallAgentEntity,
Long>
public interface CallAgentRepository
extends org.springframework.data.jpa.repository.JpaRepository<CallAgentEntity,Long>
Call坐席数据访问接口
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteByAgentId
(String agentId) 根据坐席ID删除坐席boolean
existsByAgentId
(String agentId) 检查坐席ID是否存在findByAgentId
(String agentId) 根据坐席ID查找坐席根据坐席模式查找坐席列表根据坐席状态查找坐席列表查找所有就绪状态的坐席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, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlush
Methods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAll
Methods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByAgentId
根据坐席ID查找坐席 -
findByStatus
根据坐席状态查找坐席列表 -
findByMode
根据坐席模式查找坐席列表 -
existsByAgentId
检查坐席ID是否存在 -
deleteByAgentId
根据坐席ID删除坐席 -
findByStatusAndMode
List<CallAgentEntity> findByStatusAndMode(CallAgentEntity.AgentStatus status, CallAgentEntity.AgentMode mode) 查找所有就绪状态的坐席
-