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
2c80d81a
...
2c80d81af2c0ad3a0413472e0d1c39a73ba43971
authored
2021-12-07 09:50:18 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账单二级收益详情
1 parent
2cc2ef17
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Services/MusicianWalletService.php
app/Services/MusicianWalletService.php
View file @
2c80d81
...
...
@@ -29,12 +29,12 @@ class MusicianWalletService extends Service
*/
public
function
walletDetail
()
{
$app
=
StakeholderIncomeSyncApp
::
query
()
->
where
([
'serial_no'
=>
$this
->
request
->
input
(
'serial_no'
),
'sync_status
'
=>
1
])
->
first
();
if
(
empty
(
$app
))
return
Response
::
error
(
ErrorCode
::
ORDER_NO_FOUND
);
$app
_detail
=
StakeholderIncomeSyncAppDetails
::
query
()
->
where
([
'serial_no'
=>
$this
->
request
->
input
(
'serial_no'
),
'type
'
=>
1
])
->
first
();
if
(
empty
(
$app
_detail
))
return
Response
::
error
(
ErrorCode
::
ORDER_NO_FOUND
);
$collate
=
StakeholderSongCollate
::
query
()
->
where
([
'
bills_id'
=>
$app
->
related_id
,
'stakeholder_id'
=>
$app
->
stakeholder_id
,
'subject_no'
=>
$app
->
subject
_no
])
->
select
([
'
song_id'
,
'role'
,
'cost_amount'
,
'deduct_prepaid as deduct_amount
'
,
'real_share_amount'
,
'name'
,
'singer'
])
'
track_serial_no'
=>
$app_detail
->
serial
_no
])
->
select
([
'
role'
,
'cost_amount'
,
'deduct_prepaid
'
,
'real_share_amount'
,
'name'
,
'singer'
])
->
paginate
(
$this
->
pageSize
);
foreach
(
$collate
as
&
$item
)
{
...
...
Please
register
or
sign in
to post a comment