From 38c19f359a06adbeb7cf62c57b7e5f3192bec9f5 Mon Sep 17 00:00:00 2001 From: jack ning Date: Fri, 21 Nov 2025 16:54:27 +0800 Subject: [PATCH] update --- .../com/bytedesk/core/utils/ConvertUtils.java | 42 ------------------- .../service/agent/AgentRestService.java | 3 +- 2 files changed, 2 insertions(+), 43 deletions(-) diff --git a/modules/core/src/main/java/com/bytedesk/core/utils/ConvertUtils.java b/modules/core/src/main/java/com/bytedesk/core/utils/ConvertUtils.java index 6dd4374ad4..3ed075daa8 100644 --- a/modules/core/src/main/java/com/bytedesk/core/utils/ConvertUtils.java +++ b/modules/core/src/main/java/com/bytedesk/core/utils/ConvertUtils.java @@ -251,52 +251,10 @@ public class ConvertUtils { } } - // 手动设置状态判断字段 - // threadResponse.setNewStatus(thread.isNew()); - // threadResponse.setRobotingStatus(thread.isRoboting()); - // threadResponse.setQueuingStatus(thread.isQueuing()); - // threadResponse.setOfflineStatus(thread.isOffline()); - // threadResponse.setChattingStatus(thread.isChatting()); - // threadResponse.setTimeoutStatus(thread.isTimeout()); - // threadResponse.setClosedStatus(thread.isClosed()); - - // // 手动设置类型判断字段 - // threadResponse.setCustomerServiceType(thread.isCustomerService()); - // threadResponse.setRobotType(thread.isRobotType()); - // threadResponse.setWorkgroupType(thread.isWorkgroupType()); - // threadResponse.setAgentType(thread.isAgentType()); - // threadResponse.setUnifiedType(thread.isUnifiedType()); - - // // 手动设置渠道判断字段 - // threadResponse.setWeChatMpChannel(thread.isWeChatMp()); - // threadResponse.setWeChatMiniChannel(thread.isWeChatMini()); - // 手动设置业务逻辑字段 threadResponse.setRobotToAgent(thread.isRobotToAgent()); // 关闭来源类型 threadResponse.setCloseType(thread.getCloseType()); - - // boolean messagesInitialized = thread.getMessages() != null && Hibernate.isInitialized(thread.getMessages()); - // if (messagesInitialized) { - // // Only touch lazy collection when it is fully initialized - // threadResponse.setValid(thread.isValid()); - // threadResponse.setUnreadCount(thread.getUnreadCount()); - // threadResponse.setVisitorUnreadCount(thread.getVisitorUnreadCount()); - // threadResponse.setAllMessageCount(thread.getAllMessageCount()); - // threadResponse.setVisitorMessageCount(thread.getVisitorMessageCount()); - // threadResponse.setAgentMessageCount(thread.getAgentMessageCount()); - // threadResponse.setSystemMessageCount(thread.getSystemMessageCount()); - // threadResponse.setRobotMessageCount(thread.getRobotMessageCount()); - // } else { - // threadResponse.setValid(null); - // threadResponse.setUnreadCount(null); - // threadResponse.setVisitorUnreadCount(null); - // threadResponse.setAllMessageCount(null); - // threadResponse.setVisitorMessageCount(null); - // threadResponse.setAgentMessageCount(null); - // threadResponse.setSystemMessageCount(null); - // threadResponse.setRobotMessageCount(null); - // } // return threadResponse; } diff --git a/modules/service/src/main/java/com/bytedesk/service/agent/AgentRestService.java b/modules/service/src/main/java/com/bytedesk/service/agent/AgentRestService.java index c515e54be6..540ffa7492 100644 --- a/modules/service/src/main/java/com/bytedesk/service/agent/AgentRestService.java +++ b/modules/service/src/main/java/com/bytedesk/service/agent/AgentRestService.java @@ -251,6 +251,7 @@ public class AgentRestService extends BaseRestService agentOptional = agentRepository.findByUserUid(user.getUid()); if (!agentOptional.isPresent()) { @@ -279,7 +280,7 @@ public class AgentRestService extends BaseRestService