This commit is contained in:
jack ning
2025-11-21 11:12:09 +08:00
parent 2d9d7f289e
commit 0ef9ccc2e5

View File

@@ -239,12 +239,6 @@ public class AgentRestService extends BaseRestService<AgentEntity, AgentRequest,
.orElseThrow(() -> new RuntimeException("agent found with uid: " + request.getUid()));
agent.setStatus(request.getStatus()); // 更新接待状态
//
// int currentThreadCount =
// threadRestService.countByThreadTopicAndStateNot(agent.getUid(),
// ThreadProcessStatusEnum.CLOSED.name());
// agent.setCurrentThreadCount(currentThreadCount);
// log.info("update agent: {} status", agent.getNickname());
//
AgentEntity updatedAgent = save(agent);
if (updatedAgent == null) {
throw new RuntimeException("Failed to save agent.");