|
@@ -44,11 +44,13 @@ public class AlbumFavoriteServiceImpl extends ServiceImpl<AlbumFavoriteDao,Album
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<Long> selectFavorite(Long userId, List<Long> albumIds) {
|
|
|
+ public List<Long> selectFavorite(Long userId, List<Long> albumIds, ClientEnum clientType) {
|
|
|
+
|
|
|
List<AlbumFavorite> list = this.lambdaQuery()
|
|
|
- .in(AlbumFavorite::getAlbumId, albumIds)
|
|
|
- .eq(AlbumFavorite::getUserId, userId)
|
|
|
- .list();
|
|
|
+ .in(AlbumFavorite::getAlbumId, albumIds)
|
|
|
+ .eq(AlbumFavorite::getUserId, userId)
|
|
|
+ .eq(AlbumFavorite::getClientType, clientType)
|
|
|
+ .list();
|
|
|
|
|
|
if (CollectionUtils.isEmpty(list)) {
|
|
|
return new ArrayList<>();
|