From f10fe79a11103a46a243ddb77e01dede6f71fa5e Mon Sep 17 00:00:00 2001 From: JH <935007339@qq.com> Date: Wed, 7 Feb 2024 11:06:46 +0800 Subject: [PATCH] update --- .../java/com/luoo/music/service/CMSJournalService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java b/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java index 57ba644..0830de0 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java +++ b/luoo_music/src/main/java/com/luoo/music/service/CMSJournalService.java @@ -190,11 +190,10 @@ public class CMSJournalService { } else { list = new ArrayList<>(); } - Tag tag = idTagMap.get(item.getTagId()); - // if (StringUtils.isNotBlank(tag.getParentId())) { - // list.add(tag.getNameCh()); + if (idTagMap.containsKey(item.getTagId())) { + Tag tag = idTagMap.get(item.getTagId()); list.add(tag.getId()); - // } + } journalTagMap.put(journalId, list); } return journalTagMap;