Class PresenceFacadeService

java.lang.Object
com.bytedesk.service.presence.PresenceFacadeService

@Service public class PresenceFacadeService extends Object
PresenceFacadeService 统一封装坐席/工作组在线状态判断逻辑,逐步替换旧的 AgentEntity.connected 布尔字段。 逻辑来源:ConnectionEntity 多客户端长连接会话记录 + 接待状态。
  • Field Details

  • Constructor Details

    • PresenceFacadeService

      public PresenceFacadeService()
  • Method Details

    • isAgentOnline

      public boolean isAgentOnline(AgentEntity agent)
      判断坐席是否至少有一个有效在线连接
    • isAgentOnlineAndAvailable

      public boolean isAgentOnlineAndAvailable(AgentEntity agent)
      坐席是否在线且当前接待状态可用
    • isWorkgroupOnline

      public boolean isWorkgroupOnline(WorkgroupEntity workgroup)
      计算工作组是否有任意在线坐席
    • getAvailableAgents

      public List<AgentEntity> getAvailableAgents(WorkgroupEntity workgroup)
      获取在线且可用的坐席列表(替换 WorkgroupEntity#getAvailableAgents 旧实现)
    • countOnlineAgents

      public long countOnlineAgents(WorkgroupEntity workgroup)
      在线坐席数量(统计用途)