| 程序包 | 说明 |
|---|---|
| io.xiaper.jpa.model | |
| io.xiaper.jpa.repository |
| 限定符和类型 | 方法和说明 |
|---|---|
Thread |
Transfer.getThread() |
Thread |
Rate.getThread() |
Thread |
Queue.getThread() |
Thread |
Subscribe.getThread() |
Thread |
Invite.getThread() |
Thread |
Message.getThread() |
| 限定符和类型 | 方法和说明 |
|---|---|
Set<Thread> |
User.getThreads() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Transfer.setThread(Thread thread) |
void |
Rate.setThread(Thread thread) |
void |
Queue.setThread(Thread thread) |
void |
Subscribe.setThread(Thread thread) |
void |
Invite.setThread(Thread thread) |
void |
Message.setThread(Thread thread) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
User.setThreads(Set<Thread> threads) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Thread> |
ThreadRepository.findByAgentAndClosed(User agent,
boolean closed) |
List<Thread> |
ThreadRepository.findByAgentAndTypeAndDeletedSetNotContains(User agent,
String type,
User user) |
org.springframework.data.domain.Page<Thread> |
ThreadRepository.findByAgentsContainsAndClosed(User agent,
boolean closed,
org.springframework.data.domain.Pageable pageable) |
List<Thread> |
ThreadRepository.findByClosed(boolean close)
所有结束/未结束会话
|
List<Thread> |
ThreadRepository.findByCreatedAtBetween(Date startAt,
Date endAt)
某个时间段内进入的会话thread
|
List<Thread> |
ThreadRepository.findByGroup_MembersContainsAndGroup_DismissedAndType(User user,
boolean dismissed,
String type) |
List<Thread> |
ThreadRepository.findByStartedAtBetweenAndType(Date startAt,
Date endAt,
String type)
某个时间段内开始的客服会话
|
Optional<Thread> |
ThreadRepository.findByTid(String tid) |
org.springframework.data.domain.Page<Thread> |
ThreadRepository.findByTimestampAfterAndAgentsContains(Date timestamp,
User agent,
org.springframework.data.domain.Pageable pageable)
找出某个客服*时间至现在的所有会话
|
List<Thread> |
ThreadRepository.findByTimestampBeforeAndTypeAndClosedOrderByIdAsc(Date timestamp,
String type,
boolean closed)
查询某个时间点之前,而且是否关闭的会话
|
Optional<Thread> |
ThreadRepository.findByTypeAndAgentsContainsAndAgentsContains(String type,
User agent1,
User agent2)
查询一对一会话的thread
|
org.springframework.data.domain.Page<Thread> |
ThreadRepository.findByVisitor(User visitor,
org.springframework.data.domain.Pageable pageable) |
List<Thread> |
ThreadRepository.findByVisitorAndClosed(User visitor,
boolean closed) |
List<Thread> |
ThreadRepository.findByVisitorAndSessionIdAndClosed(User visitor,
String sessionId,
boolean closed) |
org.springframework.data.domain.Page<Thread> |
ThreadRepository.findByWorkGroup_UserAndClosedAndAgentNotNull(User user,
boolean closed,
org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<Thread> |
ThreadRepository.findByWorkGroup_UserAndClosedAndAgentNotNullOrAgentOrAgent_User(User user,
boolean closed,
User user1,
User user2,
org.springframework.data.domain.Pageable pageable) |
org.springframework.data.domain.Page<Thread> |
ThreadRepository.findByWorkGroup_UsersContainsAndClosedAndWorkGroup_AdminAndAgentNotNull(User user,
boolean closed,
User admin,
org.springframework.data.domain.Pageable pageable) |
Optional<Thread> |
ThreadRepository.findFirstByContactAndAgent(User contact,
User agent) |
Optional<Thread> |
ThreadRepository.findFirstByGroup(Group group) |
Optional<Thread> |
ThreadRepository.findFirstByVisitorAndAgentAndAppointedAndClosed(User visitor,
User agent,
boolean appointed,
boolean closed) |
Optional<Thread> |
ThreadRepository.findFirstByVisitorAndWorkGroupAndAppointedAndClosed(User visitor,
WorkGroup workGroup,
boolean appointed,
boolean closed) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SubscribeRepository.deleteByThread(Thread thread) |
org.springframework.data.domain.Page<Message> |
MessageRepository.findByThread(Thread thread,
org.springframework.data.domain.Pageable pageable) |
List<Message> |
MessageRepository.findByThreadAndDeletedSetNotContains(Thread thread,
User user) |
Optional<Message> |
MessageRepository.findFirstByThreadAndTypeOrderByIdDesc(Thread thread,
String type) |
Optional<Subscribe> |
SubscribeRepository.findFirstByThreadAndUser(Thread thread,
User user) |
Copyright © 2019. All rights reserved.