|
@@ -118,8 +118,14 @@ public class TenantAlbumMusicServiceImpl extends ServiceImpl<TenantAlbumMusicMap
|
|
|
}
|
|
|
|
|
|
List<Long> musicSheetIds = list.stream().map(o -> o.getMusicSheetId()).distinct().collect(Collectors.toList());
|
|
|
+ if (CollectionUtils.isEmpty(musicSheetIds)) {
|
|
|
+ return data;
|
|
|
+ }
|
|
|
|
|
|
Collection<MusicSheet> musicSheets = musicSheetService.listByIds(musicSheetIds);
|
|
|
+ if (CollectionUtils.isEmpty(musicSheets)) {
|
|
|
+ return data;
|
|
|
+ }
|
|
|
|
|
|
// 类型
|
|
|
List<String> types = list.stream().map(TenantAlbumMusic::getType).distinct().filter(StringUtils::isNotBlank).collect(Collectors.toList());
|