*
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -32,7 +32,7 @@ class MusicianSongService extends Service | ... | @@ -32,7 +32,7 @@ class MusicianSongService extends Service |
32 | 32 | ||
33 | $res = Song::query()->join($songip_table, "{$song_table}.id", '=', "{$songip_table}.song_id") | 33 | $res = Song::query()->join($songip_table, "{$song_table}.id", '=', "{$songip_table}.song_id") |
34 | ->with(['contractDetail', 'coverResource'])->whereIn("{$songip_table}.song_id", $song_ids)->select(["{$song_table}.id", 'publish_song']) | 34 | ->with(['contractDetail', 'coverResource'])->whereIn("{$songip_table}.song_id", $song_ids)->select(["{$song_table}.id", 'publish_song']) |
35 | ->groupBy(["song_id"])->get(); | 35 | ->groupBy(["song_id"])->paginate($this->pageSize); |
36 | 36 | ||
37 | foreach ($res as &$item) { | 37 | foreach ($res as &$item) { |
38 | 38 | ... | ... |
-
Please register or sign in to post a comment