From fe1b02a121c173e9b2d56bbe5a1982e0e69e0548 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 28 四月 2026 18:06:08 +0800
Subject: [PATCH] feat(production): 新增生产工单管理功能 - 创建 ProductionOperationTask 实体类定义工单数据结构 - 实现 ProductionOperationTaskController 提供工单的增删改查接口 - 开发 ProductionOperationTaskService 和实现类处理业务逻辑 - 配置 ProductionOperationTaskMapper 及 XML 文件实现数据库操作 - 添加 ProductionOperationTaskVo 视图对象用于数据展示 - 扩展 ProductionOrder 实体类增加生产订单相关属性 - 更新 ProductionOrderMapper.xml 完善订单查询映射配置 - 优化 ProductionOrderPickRecordMapper.xml 记录物料领取明细 - 新增 ProductionOrderRoutingOperationParam 参数配置实体 - 完善 工序参数处理逻辑

---
 src/main/java/com/ruoyi/ai/config/XiaozhiAgentConfig.java |   67 ++++++++++++++-------------------
 1 files changed, 29 insertions(+), 38 deletions(-)

diff --git a/src/main/java/com/ruoyi/ai/config/XiaozhiAgentConfig.java b/src/main/java/com/ruoyi/ai/config/XiaozhiAgentConfig.java
index 58be3a6..27e5a6b 100644
--- a/src/main/java/com/ruoyi/ai/config/XiaozhiAgentConfig.java
+++ b/src/main/java/com/ruoyi/ai/config/XiaozhiAgentConfig.java
@@ -1,24 +1,15 @@
 package com.ruoyi.ai.config;
 
 import com.ruoyi.ai.store.MongoChatMemoryStore;
-import dev.langchain4j.data.document.Document;
-import dev.langchain4j.data.document.loader.FileSystemDocumentLoader;
-import dev.langchain4j.data.segment.TextSegment;
 import dev.langchain4j.memory.chat.ChatMemoryProvider;
 import dev.langchain4j.memory.chat.MessageWindowChatMemory;
 import dev.langchain4j.model.embedding.EmbeddingModel;
 import dev.langchain4j.rag.content.retriever.ContentRetriever;
 import dev.langchain4j.rag.content.retriever.EmbeddingStoreContentRetriever;
 import dev.langchain4j.store.embedding.EmbeddingStore;
-import dev.langchain4j.store.embedding.EmbeddingStoreIngestor;
-import dev.langchain4j.store.embedding.inmemory.InMemoryEmbeddingStore;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.beans.factory.annotation.Value;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
-
-import java.util.Collections;
-import java.util.List;
 
 /**
  * @author :yys
@@ -35,8 +26,8 @@
     @Autowired
     private EmbeddingModel embeddingModel;
 
-    @Value("${knowledge.one}")
-    private String one;
+//    @Value("${knowledge.one}")
+//    private String one;
 //
 //    @Value("${knowledge.two}")
 //    private String two;
@@ -53,33 +44,33 @@
                 .build();
     }
 
-    @Bean
-    ContentRetriever contentRetrieverXiaozhi() {
-        //浣跨敤FileSystemDocumentLoader璇诲彇鎸囧畾鐩綍涓嬬殑鐭ヨ瘑搴撴枃妗�
-        //骞朵娇鐢ㄩ粯璁ょ殑鏂囨。瑙f瀽鍣ㄥ鏂囨。杩涜瑙f瀽
-        Document document1 = FileSystemDocumentLoader.loadDocument(one);
-//        Document document2 = FileSystemDocumentLoader.loadDocument(two);
-//        Document document3 = FileSystemDocumentLoader.loadDocument(three);
-//        List<Document> documents = Arrays.asList(document1, document2, document3);
-
-        List<Document> documents = Collections.singletonList(document1);
-//         2. 灏嗘暟鎹簱鏁版嵁杞负LangChain4j鐨凞ocument瀵硅薄
-//        List<Document> documents = new ArrayList<>();
-
-        //浣跨敤鍐呭瓨鍚戦噺瀛樺偍
-        InMemoryEmbeddingStore<TextSegment> inMemoryEmbeddingStore = new InMemoryEmbeddingStore<>();
-        //浣跨敤榛樿鐨勬枃妗e垎鍓插櫒
-        EmbeddingStoreIngestor.builder()
-                .embeddingModel(embeddingModel)
-                .embeddingStore(inMemoryEmbeddingStore)
-                .build()
-                .ingest(documents);
-        //浠庡祵鍏ュ瓨鍌紙EmbeddingStore锛夐噷妫�绱㈠拰鏌ヨ鍐呭鐩稿叧鐨勪俊鎭�
-        return EmbeddingStoreContentRetriever.builder()
-                .embeddingModel(embeddingModel)
-                .embeddingStore(inMemoryEmbeddingStore)
-                .build();
-    }
+//    @Bean
+//    ContentRetriever contentRetrieverXiaozhi() {
+//        //浣跨敤FileSystemDocumentLoader璇诲彇鎸囧畾鐩綍涓嬬殑鐭ヨ瘑搴撴枃妗�
+//        //骞朵娇鐢ㄩ粯璁ょ殑鏂囨。瑙f瀽鍣ㄥ鏂囨。杩涜瑙f瀽
+//        Document document1 = FileSystemDocumentLoader.loadDocument(one);
+////        Document document2 = FileSystemDocumentLoader.loadDocument(two);
+////        Document document3 = FileSystemDocumentLoader.loadDocument(three);
+////        List<Document> documents = Arrays.asList(document1, document2, document3);
+//
+//        List<Document> documents = Collections.singletonList(document1);
+////         2. 灏嗘暟鎹簱鏁版嵁杞负LangChain4j鐨凞ocument瀵硅薄
+////        List<Document> documents = new ArrayList<>();
+//
+//        //浣跨敤鍐呭瓨鍚戦噺瀛樺偍
+//        InMemoryEmbeddingStore<TextSegment> inMemoryEmbeddingStore = new InMemoryEmbeddingStore<>();
+//        //浣跨敤榛樿鐨勬枃妗e垎鍓插櫒
+//        EmbeddingStoreIngestor.builder()
+//                .embeddingModel(embeddingModel)
+//                .embeddingStore(inMemoryEmbeddingStore)
+//                .build()
+//                .ingest(documents);
+//        //浠庡祵鍏ュ瓨鍌紙EmbeddingStore锛夐噷妫�绱㈠拰鏌ヨ鍐呭鐩稿叧鐨勪俊鎭�
+//        return EmbeddingStoreContentRetriever.builder()
+//                .embeddingModel(embeddingModel)
+//                .embeddingStore(inMemoryEmbeddingStore)
+//                .build();
+//    }
 
     @Bean
     ContentRetriever contentRetrieverXiaozhiPincone() {

--
Gitblit v1.9.3