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
d6e1b37a
...
d6e1b37ad13de9bb7080cf55e96334f7e26ba3ff
authored
2021-08-23 12:28:02 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
c9a81f50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
app/Models/BaseModel.php
app/Services/MusicianWithdrawService.php
app/Models/BaseModel.php
View file @
d6e1b37
...
...
@@ -67,4 +67,5 @@ class BaseModel extends Model
return
$builder
->
whereIn
(
'stakeholder_id'
,
request
()
->
get
(
'stakeholder_ids'
));
}
}
...
...
app/Services/MusicianWithdrawService.php
View file @
d6e1b37
...
...
@@ -20,7 +20,7 @@ class MusicianWithdrawService extends Service
$receipt
=
[];
StakeholderIncomeByPayer
::
query
()
->
with
(
'company:company_id,receipt_name,receipt_no,receipt_tel,receipt_address,receipt_bank,receipt_bank_no'
)
->
identify
(
)
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
select
([
'id'
,
'company_id'
])
->
get
()
->
map
(
function
(
$item
)
use
(
&
$receipt
)
{
->
where
([
'identifier'
=>
$this
->
identifier
->
identifier
,
'sync_status'
=>
1
]
)
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
select
([
'id'
,
'company_id'
])
->
get
()
->
map
(
function
(
$item
)
use
(
&
$receipt
)
{
if
(
!
empty
(
$item
->
company
))
{
$receipt
[
$item
->
company_id
]
=
[
...
...
@@ -59,7 +59,8 @@ class MusicianWithdrawService extends Service
break
;
}
if
(
StakeholderIncomeByPayer
::
query
()
->
where
(
'sync_status'
,
1
)
->
identify
()
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
update
([
if
(
StakeholderIncomeByPayer
::
query
()
->
where
([
'sync_status'
=>
1
,
'identifier'
=>
$this
->
identifier
->
identifier
])
->
whereIn
(
'serial_no'
,
$this
->
request
->
input
(
'serial_no'
))
->
update
([
'withdraw_status'
=>
$withdraw_status
,
]))
{
return
Response
::
success
();
...
...
Please
register
or
sign in
to post a comment