|
|
|
@ -417,8 +417,8 @@ public class CMSSongService {
|
|
|
|
|
*/
|
|
|
|
|
public Result deleteById(String id) {
|
|
|
|
|
List<String> 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);
|
|
|
|
|