发行作品列表
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -32,7 +32,8 @@ class MusicianSongService extends Service | ... | @@ -32,7 +32,8 @@ class MusicianSongService extends Service |
32 | $songip_table = SongsIp::table(); | 32 | $songip_table = SongsIp::table(); |
33 | 33 | ||
34 | $res = Song::query()->join($songip_table, "{$song_table}.id", '=', "{$songip_table}.song_id") | 34 | $res = Song::query()->join($songip_table, "{$song_table}.id", '=', "{$songip_table}.song_id") |
35 | ->with(['contractDetail', 'coverResource'])->whereIn("{$songip_table}.song_id", $song_ids)->select(["{$song_table}.id", "{$songip_table}.id as sp_id", 'online_time', 'publish_song']) | 35 | ->with(['contractDetail', 'coverResource'])->whereIn("{$songip_table}.song_id", $song_ids)->whereNull("{$songip_table}.deleted_at") |
36 | ->select(["{$song_table}.id", "{$songip_table}.id as sp_id", 'online_time', 'publish_song']) | ||
36 | ->groupBy(["song_id"])->paginate($this->pageSize); | 37 | ->groupBy(["song_id"])->paginate($this->pageSize); |
37 | 38 | ||
38 | $sp_exts = []; | 39 | $sp_exts = []; | ... | ... |
-
Please register or sign in to post a comment