feat: 优化标签ID处理逻辑,新增批量更新TagID功能

This commit is contained in:
wizardchen
2025-12-25 17:16:35 +08:00
committed by lyingbug
parent 4c0846f9c7
commit a025ebe7fb
4 changed files with 22 additions and 7 deletions
+1 -1
View File
@@ -3570,7 +3570,7 @@ func (s *knowledgeService) UpdateFAQEntryFieldsBatch(ctx context.Context,
// Update all chunks with this tag
affectedIDs, err := s.chunkRepo.UpdateChunkFieldsByTagID(
ctx, tenantID, kb.ID, tagID,
update.IsEnabled, setFlags, clearFlags, req.ExcludeIDs,
update.IsEnabled, setFlags, clearFlags, update.TagID, req.ExcludeIDs,
)
if err != nil {
return err