知识库文件上传优化

This commit is contained in:
2025-12-31 10:45:29 +08:00
parent f287f36496
commit a3e09bfa2c
3 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ public interface TbKnowledgeMapper {
*/
int deleteKnowledge(TbKnowledge knowledge);
int updateKnowledgeFileCount(String knowledgeId, int num);
int updateKnowledgeFileCount(@Param("knowledgeId") String knowledgeId, @Param("num") Integer num);
/**
* 根据ID查询知识库

View File

@@ -114,7 +114,7 @@
<update id="updateKnowledgeFileCount">
UPDATE ai.tb_knowledge
SET document_count = document_count + #{fileCount}
SET document_count = document_count + #{num}
WHERE knowledge_id = #{knowledgeId} AND deleted = false
</update>