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;