|
@@ -83,7 +83,7 @@ public class MusicTagServiceImpl extends ServiceImpl<MusicTagDao, MusicTag> impl
|
|
|
public boolean del(Long musicTagId) {
|
|
|
|
|
|
// 有关联的曲目或专辑不让删除
|
|
|
- if (checkTagBeUserd(musicTagId)) {
|
|
|
+ if (checkTagBeUsed(musicTagId)) {
|
|
|
throw new BizException("当前标签或子集标签已被使用,不可删除");
|
|
|
}
|
|
|
|
|
@@ -102,7 +102,7 @@ public class MusicTagServiceImpl extends ServiceImpl<MusicTagDao, MusicTag> impl
|
|
|
* @param musicTagId 标签id
|
|
|
* @return
|
|
|
*/
|
|
|
- private boolean checkTagBeUserd(Long musicTagId) {
|
|
|
+ private boolean checkTagBeUsed(Long musicTagId) {
|
|
|
|
|
|
List<MusicTag> list = this.lambdaQuery()
|
|
|
.eq(MusicTag::getParentTagId, musicTagId)
|