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
df356054
...
df356054ef42cc7e2a4a5a43f873a355bbc8777c
authored
2021-08-06 14:26:42 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
df092b54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Services/MusicianAgreementService.php
app/Services/MusicianAgreementService.php
View file @
df35605
...
...
@@ -17,7 +17,7 @@ class MusicianAgreementService extends Service
public
function
treatyList
()
{
$res
=
Treaty
::
query
()
->
whereIn
(
'party_b'
,
$this
->
stakeholder_ids
)
->
where
(
'deadline_date'
,
'>'
,
$this
->
now
)
->
with
([
'file:id,treaty_id,file_id'
,
'file.fileInfo:id,location'
])
->
select
([
'id'
,
'treaty_name'
,
'treaty_type'
,
'service_type'
,
'deadline_date'
,
'music_no'
])
->
paginate
(
$this
->
pageSize
);
->
select
([
'id'
,
'treaty_name'
,
'treaty_type'
,
'service_type'
,
'deadline_date'
,
'music_no'
])
->
orderByDesc
(
'created_at'
)
->
paginate
(
$this
->
pageSize
);
foreach
(
$res
as
&
$item
)
{
$item_res
=
$item
->
toArray
();
...
...
Please
register
or
sign in
to post a comment