[update] Prompt模版查询优化 --1.1

This commit is contained in:
Liuyang 2025-01-14 15:26:35 +08:00
parent a7353b90ae
commit d1d3214059

View File

@ -164,7 +164,7 @@ public class PromptTemplatesBackupServiceImpl implements PromptTemplatesBackupSe
List<PromptTemplatesTagsBackupDO> tagDOList = this.promptTemplatesTagsBackupMapper
.selectList("prompt_template_id", id);
Map<Long, String> labelMap = labelService.getLabelMap(false);
Map<Long, String> labelMap = labelService.getLabelMap(true);
if (CollectionUtils.isNotEmpty(tagDOList)) {
// 过滤 tagDOList labelMap 中不存在的 tagIds只保留存在的