|
@@ -197,7 +197,7 @@ public class TenantAlbumController {
|
|
|
List<Long> musicIds = album.getMusicSheetData().stream().flatMap(o -> o.getMusicSheetList().stream().map(m -> m.getId())).collect(Collectors.toList());
|
|
|
Set<Long> musicSet = new HashSet<>(musicIds);
|
|
|
if (musicSet.size() < musicIds.size()) {
|
|
|
- throw new BizException("不予许添加相同的曲目");
|
|
|
+ throw new BizException("不能添加相同的曲目");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -246,7 +246,7 @@ public class TenantAlbumController {
|
|
|
.stream().map(TenantAlbumVo.MusicObject::getId)).collect(Collectors.toList());
|
|
|
Set<Long> musicSet = new HashSet<>(musicIds);
|
|
|
if (musicSet.size() < musicIds.size()) {
|
|
|
- throw new BizException("不予许添加相同的曲目");
|
|
|
+ throw new BizException("不能添加相同的曲目");
|
|
|
}
|
|
|
}
|
|
|
|