refactor(module-llm):优化知识库文档保存逻辑

- 移除了对文档 ID 的非空过滤,因为 KnowledgeDocumentsSaveReqVO 已确保 ID 不为 null
This commit is contained in:
Liuyang 2025-03-14 11:02:13 +08:00
parent d5c789bea1
commit 0a79f153ef

View File

@ -124,7 +124,6 @@ public class KnowledgeBaseServiceImpl implements KnowledgeBaseService {
// 获取需要保留的文档 ID
List<Long> retainedIds = documents.stream()
.map(KnowledgeDocumentsSaveReqVO::getId)
.filter(Objects::nonNull)
.collect(Collectors.toList());
// 删除不需要保留的文档