|
@@ -234,7 +234,12 @@ public class TenantAlbumController {
|
|
|
Long tenantId = album.getTenantId();
|
|
|
List<TenantAlbumMusic> list = tenantAlbumMusicService.lambdaQuery().eq(TenantAlbumMusic::getTenantId, tenantId).list();
|
|
|
if (CollectionUtils.isNotEmpty(list)){
|
|
|
- throw new BizException("当前机构已有专辑");
|
|
|
+ list.stream().forEach(i->{
|
|
|
+ if (i.getTenantAlbumId() != album.getId()){
|
|
|
+ throw new BizException("当前机构已有专辑");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
TenantAlbum tenantAlbum = JSON.parseObject(album.jsonString(), TenantAlbum.class);
|
|
|
List<TenantAlbumVo.MusicSheetData> musicSheetData = album.getMusicSheetData();
|