Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1760ca31
...
1760ca316ae0bca2c88e95d67f6008da91c3821d
authored
2021-08-26 14:15:59 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
发行作品列表
1 parent
b53b082f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/Services/MusicianSongService.php
app/Services/MusicianSongService.php
View file @
1760ca3
...
...
@@ -32,7 +32,8 @@ class MusicianSongService extends Service
$songip_table
=
SongsIp
::
table
();
$res
=
Song
::
query
()
->
join
(
$songip_table
,
"
{
$song_table
}
.id"
,
'='
,
"
{
$songip_table
}
.song_id"
)
->
with
([
'contractDetail'
,
'coverResource'
])
->
whereIn
(
"
{
$songip_table
}
.song_id"
,
$song_ids
)
->
select
([
"
{
$song_table
}
.id"
,
"
{
$songip_table
}
.id as sp_id"
,
'online_time'
,
'publish_song'
])
->
with
([
'contractDetail'
,
'coverResource'
])
->
whereIn
(
"
{
$songip_table
}
.song_id"
,
$song_ids
)
->
whereNull
(
"
{
$songip_table
}
.deleted_at"
)
->
select
([
"
{
$song_table
}
.id"
,
"
{
$songip_table
}
.id as sp_id"
,
'online_time'
,
'publish_song'
])
->
groupBy
([
"song_id"
])
->
paginate
(
$this
->
pageSize
);
$sp_exts
=
[];
...
...
Please
register
or
sign in
to post a comment