fix: 加回注解

This commit is contained in:
liu.zixi
2025-12-04 19:04:53 +08:00
committed by joshen
parent 92721b9c17
commit ac3465ff92

View File

@@ -114,6 +114,7 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
private final Map<String, EventSource> conversationEventSourceMap = new ConcurrentHashMap<>(); private final Map<String, EventSource> conversationEventSourceMap = new ConcurrentHashMap<>();
@Override @Override
@Transactional
public SseEmitter chat(CaseAiChatDto caseAiChatDto, CurrentUser currentUser) { public SseEmitter chat(CaseAiChatDto caseAiChatDto, CurrentUser currentUser) {
// 创建SSE响应器 // 创建SSE响应器
SseEmitter sseEmitter = new SseEmitter(); SseEmitter sseEmitter = new SseEmitter();
@@ -394,7 +395,7 @@ public class CaseAiChatServiceImpl implements ICaseAiChatService {
} }
@Override @Override
// @Transactional @Transactional
public CaseAiConversations createNewConversation(String userId, String conversationName) { public CaseAiConversations createNewConversation(String userId, String conversationName) {
try (CloseableHttpClient httpClient = HttpClients.createDefault()) { try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
String url = caseAiProperties.getBaseUrl() + "/apigateway/knowledge/v1/conversation"; String url = caseAiProperties.getBaseUrl() + "/apigateway/knowledge/v1/conversation";