diff --git a/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java b/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java index 647ca8f..43492ab 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java +++ b/luoo_music/src/main/java/com/luoo/music/service/CMSSongService.java @@ -417,8 +417,8 @@ public class CMSSongService { */ public Result deleteById(String id) { List journalsBySongId = journalSongDao.findJournalBySongId(id); - if (CollectionUtils.isEmpty(journalsBySongId)) { - return Result.success("该歌曲被期刊使用,删除失败"); + if (!CollectionUtils.isEmpty(journalsBySongId)) { + return Result.failed("该歌曲被期刊使用,删除失败"); } else { songDao.deleteById(id); songTagDao.deleteBySongId(id);